We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d563b23 commit 22de205Copy full SHA for 22de205
package.json
@@ -18,7 +18,7 @@
18
"next": "^13.1.6",
19
"node-telegram-bot-api": "^0.61.0",
20
"nodemon": "^2.0.20",
21
- "openai": "^3.1.0",
+ "openai": "^3.2.1",
22
"react": "^18.2.0",
23
"react-dom": "^18.2.0"
24
}
services/chatgpt.service.js
@@ -33,7 +33,7 @@ class ChatGPTService {
33
});
34
35
// Gửi request về OpenAI Platform để tạo text completion
36
- const completion = await openai.createCompletion({
+ const completion = await openai.createChatCompletion({
37
model: "gpt-3.5-turbo",
38
temperature: 0.7,
39
max_tokens: 1000,
0 commit comments