Skip to content

Commit

Permalink
update chatgpt
Browse files Browse the repository at this point in the history
  • Loading branch information
shnigi committed Feb 9, 2024
1 parent b2ae9ea commit c5ccdea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openai.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const shortChat = async (ctx, query) => {
try {
const response = await openai.chat.completions.create({
messages: [{ role: 'user', content: query }],
model: 'gpt-4-1106-preview',
model: 'gpt-4-turbo-preview',
});
console.log(response.choices[0].message.content);
ctx.reply(response.choices[0].message.content);
Expand Down

0 comments on commit c5ccdea

Please sign in to comment.