Update app/api/chat/route.ts
Browse files- app/api/chat/route.ts +1 -1
app/api/chat/route.ts
CHANGED
|
@@ -23,7 +23,7 @@ export async function POST(req: Request) {
|
|
| 23 |
const { messages, function_call } = await req.json()
|
| 24 |
|
| 25 |
const response = await openai.createChatCompletion({
|
| 26 |
-
model: 'gpt-
|
| 27 |
stream: true,
|
| 28 |
messages,
|
| 29 |
functions,
|
|
|
|
| 23 |
const { messages, function_call } = await req.json()
|
| 24 |
|
| 25 |
const response = await openai.createChatCompletion({
|
| 26 |
+
model: 'gpt-4',
|
| 27 |
stream: true,
|
| 28 |
messages,
|
| 29 |
functions,
|