From 8941291d905d8fb8c07872fe82277e03f9512878 Mon Sep 17 00:00:00 2001 From: zaidmukaddam Date: Thu, 15 Aug 2024 18:53:43 +0530 Subject: [PATCH] chore: Update maxTokens to 800 for chat API --- app/api/chat/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/chat/route.ts b/app/api/chat/route.ts index 961c435..38618b0 100644 --- a/app/api/chat/route.ts +++ b/app/api/chat/route.ts @@ -17,7 +17,7 @@ export async function POST(req: Request) { model: ansmodel, messages: convertToCoreMessages(messages), temperature: 0, - maxTokens: 500, + maxTokens: 800, system: "You are an AI web search engine that helps users find information on the internet.\n" + "Always start with running the tool(s) and then and then only write your response AT ALL COSTS!!\n" +