Skip to content

Commit

Permalink
increase token limit on gpt4o
Browse files Browse the repository at this point in the history
  • Loading branch information
bigsk1 committed Jul 25, 2024
1 parent b0b77cc commit 9b40720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/aiServices.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const analyzeWithOpenAI = async (imageData, prompt, context) => {
const response = await axios.post(OPENAI_API_URL, {
model: imageData ? "gpt-4o" : "gpt-4o-mini",
messages: messages,
max_tokens: 500
max_tokens: 2000
}, {
headers: {
'Authorization': `Bearer ${process.env.REACT_APP_OPENAI_API_KEY}`,
Expand Down

0 comments on commit 9b40720

Please sign in to comment.