Skip to content

Commit 51b3e6e

Browse files
committed
revert
1 parent 1e61e92 commit 51b3e6e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

backend/src/server.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,8 @@ app.post('/va89kjds', async (req, res) => {
7676
apiKey: process.env.OPENAI_API_KEY,
7777
})
7878

79-
const hasImages = JSON.stringify(messages).includes('"type":"image"')
80-
8179
const { text } = await generateText({
82-
model: openai(hasImages ? 'gpt-4o' : 'o3-mini'),
80+
model: openai('gpt-4o'),
8381
messages,
8482
})
8583

0 commit comments

Comments
 (0)