#What does this error mean?
4 messages · Page 1 of 1 (latest)
await openai.createChatCompletion({
messages: messages,
model: "gpt-3.5-turbo",
max_tokens: tokens + 200
}).catch((error: Error) => {
it is a generic error 400 error, dumping the entire request object with console.log does not show the actuall error returned by the API data: { error: [Object] }, log the error.request.data and it will tell you what the error is