matthoffner commited on
Commit
440e084
1 Parent(s): 0e460a1

Update pages/api/chat/index.ts

Browse files
Files changed (1) hide show
  1. pages/api/chat/index.ts +1 -1
pages/api/chat/index.ts CHANGED
@@ -29,7 +29,7 @@ export default async function(req: Request) {
29
  return new StreamingTextResponse(stream);
30
  } else if (aiProvider === 'openai') {
31
  const response = await openai.createChatCompletion({
32
- model: 'gpt-4',
33
  stream: true,
34
  messages
35
  });
 
29
  return new StreamingTextResponse(stream);
30
  } else if (aiProvider === 'openai') {
31
  const response = await openai.createChatCompletion({
32
+ model: 'gpt-4o-mini',
33
  stream: true,
34
  messages
35
  });