Commit 
							
							·
						
						c46949e
	
1
								Parent(s):
							
							08cc2d6
								
Update app/api/chat/route.ts
Browse files- app/api/chat/route.ts +1 -1
 
    	
        app/api/chat/route.ts
    CHANGED
    
    | 
         @@ -20,7 +20,7 @@ export async function POST(req: Request) { 
     | 
|
| 20 | 
         
             
              const { messages, function_call } = await req.json()
         
     | 
| 21 | 
         | 
| 22 | 
         
             
              const response = await openai.createChatCompletion({
         
     | 
| 23 | 
         
            -
                model: 'gpt-4 
     | 
| 24 | 
         
             
                stream: true,
         
     | 
| 25 | 
         
             
                messages,
         
     | 
| 26 | 
         
             
                functions,
         
     | 
| 
         | 
|
| 20 | 
         
             
              const { messages, function_call } = await req.json()
         
     | 
| 21 | 
         | 
| 22 | 
         
             
              const response = await openai.createChatCompletion({
         
     | 
| 23 | 
         
            +
                model: 'gpt-4',
         
     | 
| 24 | 
         
             
                stream: true,
         
     | 
| 25 | 
         
             
                messages,
         
     | 
| 26 | 
         
             
                functions,
         
     |