Skip to content

Commit

Permalink
Update token limit to allow for longer chatbot responses
Browse files Browse the repository at this point in the history
  • Loading branch information
aliiyuu authored Aug 21, 2024
1 parent b8d2316 commit 6ccc70f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/controllers/gptController.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const getChatGPTResponse = async (req, res) => {
const response = await openai.chat.completions.create({
model: "gpt-3.5-turbo", // Updated model name
messages: [{ role: "user", content: userInput }],
max_tokens: 150,
max_tokens: 1000,
});

const data = response.choices;
Expand All @@ -33,4 +33,4 @@ const getChatGPTResponse = async (req, res) => {

module.exports = {
getChatGPTResponse
};
};

0 comments on commit 6ccc70f

Please sign in to comment.