srcnalt/OpenAI-Unity

how can i add max_tokens: 100

Closed this issue · 3 comments

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。

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.

wooo, thanks . u are correct.

Glad that worked, closing the issue.