#Response Limit
3 messages · Page 1 of 1 (latest)
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" } });
It may happen when the response reaches the max token of the model. I suggest using the 16k model instead.