Skip to content

Commit

Permalink
use token limit to avoid discord message lenth limit
Browse files Browse the repository at this point in the history
  • Loading branch information
LarmuseauNiels committed Mar 21, 2023
1 parent e8c4170 commit d89e436
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions interactions/commands/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ module.exports = {
const response = await openai.createChatCompletion({
model: "gpt-3.5-turbo",
messages: [{ role: "user", content: message }],
max_tokens: 400,
});
console.log(response);
const { data } = response;
Expand Down

0 comments on commit d89e436

Please sign in to comment.