mirror of
https://github.com/YuuKi-OS/Yuuki-chat.git
synced 2026-02-18 22:01:09 +00:00
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>
This commit is contained in:
@@ -29,7 +29,7 @@ async function callYuukiAPI(
|
|||||||
},
|
},
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
prompt,
|
prompt,
|
||||||
max_new_tokens: 1024,
|
max_new_tokens: 512,
|
||||||
temperature: 0.7,
|
temperature: 0.7,
|
||||||
model,
|
model,
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user