Closed devzhuchuanbo closed 1 year ago
I find the reason. When creating the request, there is a "MaxToken" inside it, by default, it's value is 16. We just need to change it to what we want. like this:
var request = new CreateCompletionRequest { Model = "text-davinci-003", Prompt = inputField.text, MaxTokens = 1000 //this is the max length };
Hi, thanks for your SDK, but I got a problem. For instance, I ask "I'm late for class, help me write a 200-word review", and the response was not analyzed correctly. It seems to be cut out, and only shows a small part in front. The "finish reason" for the response.Choices[0] is "length".