Closed d-e-h-i-o closed 1 year ago
You have to use createChatCompletion
instead and use messages instead of prompt:
await this.openai
.createChatCompletion({
model: 'gpt-3.5-turbo',
user: interaction.user.id,
messages: [
{ role: 'system', content: 'You are a helpful assistant. Keep your answer short.' },
{ role: 'user', content: `${input}` }
]
})
Ah, thank you. You're right!
Describe the bug
I just upgraded to 3.2.0, but the API throws an error for me when being used with the newest models.
To Reproduce
Code snippets