From 032cada1063154e930de5f5eb5df38a768b2b76b Mon Sep 17 00:00:00 2001 From: v0 Date: Wed, 11 Feb 2026 23:09:49 +0000 Subject: [PATCH] fix: adjust max_new_tokens to endpoint limit Correct max_new_tokens to 512 to avoid 422 errors. Co-authored-by: awa <212803252+aguitauwu@users.noreply.github.com> --- 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 959c58b..5cc81e7 100644 --- a/app/api/chat/route.ts +++ b/app/api/chat/route.ts @@ -29,7 +29,7 @@ async function callYuukiAPI( }, body: JSON.stringify({ prompt, - max_new_tokens: 1024, + max_new_tokens: 512, temperature: 0.7, model, }),