chatgpt-web icon indicating copy to clipboard operation
chatgpt-web copied to clipboard

请教一下,有没有人能明确说一下这几个微调参数在哪里可以改啊?主要是max_tokens参数

Open jasontips opened this issue 1 year ago • 1 comments

image 在这里加 的参数没用: image 是我加的有问题么? const options: ChatGPTAPIOptions = { apiKey: process.env.OPENAI_API_KEY, completionParams: { model, max_tokens: 4096 }, debug: !disableDebug, }

或者: if (model.toLowerCase().includes('gpt-3.5-turbo')) { options.maxModelTokens = 4096 options.maxResponseTokens = 2048 } 麻烦哪 位大神能指点一下,不甚感激!

jasontips avatar Apr 26 '23 06:04 jasontips

7531682493637_ pic maxModelTokens 是整个模型的最大token,包括上下文和回复的内容,max_tokens是回复的最大token

sopoka1999 avatar Apr 26 '23 07:04 sopoka1999

This issue is stale because it has been open for 10 days with no activity.

github-actions[bot] avatar May 07 '23 01:05 github-actions[bot]

This issue was closed because it has been inactive for 2 days since being marked as stale.

github-actions[bot] avatar May 10 '23 01:05 github-actions[bot]