how can i add max_tokens: 100
Closed this issue · 3 comments
julin171012 commented
Hello, Scarlett
I have been using this project for some time, and sometimes chatgpt replies to me with long tokens. I want to reduce its response. But cannot add 'max_tokens': max_ Tokens, what can I do。
srcnalt commented
Hi @julin171012,
You can add it as MaxTokens
in pascal case. You might as well add a word count restriction in your prompt saying Respond using maximum x words.
julin171012 commented
wooo, thanks . u are correct.
srcnalt commented
Glad that worked, closing the issue.