#HELP TO ChatCompletion!!
18 messages · Page 1 of 1 (latest)
Hey hey!
Try createChatCompletion
Yeah, instead of chatCompletion
And then make the request
Like this
const completion = await openai.createChatCompletion({
model: "gpt-3.5-turbo",
messages: [{ role: "user", content: basePromptPrefix }],
temperature: 0.7,
});
Aiogram?)
No, js
Response.choices[0].text no??
response = openai.createChatCopletion(
^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'openai' has no attribute 'createChatCopletion'
have you updated openai module?
are you on v0.27.2
Yes