#Response Limit

3 messages · Page 1 of 1 (latest)

neon plover
#

I am using ChatGPT API and it does not return after a certain character in its responses. So it's like the response is interrupted. How can I fix this?

#

const completion = await openai.createChatCompletion({ model: "gpt-3.5-turbo", messages: [ { "role": "system", "content": "return only the created json object " }, userMessage, ], functions: [{ name: "set_schema", parameters: schema }], function_call: { name: "set_schema" } });

low smelt
#

It may happen when the response reaches the max token of the model. I suggest using the 16k model instead.