mirror of
https://github.com/sune-org/us.proxy.sune.chat.git
synced 2026-06-07 16:42:13 +00:00
Fix: always set google maxOutputTokens to 65536
Co-authored-by: gemini-3.5-flash <gemini@google.com>
This commit is contained in:
@@ -207,7 +207,7 @@ export async function streamGoogle({ apiKey, body, signal, onDelta, isRunning })
|
||||
const generationConfig = Object.entries({
|
||||
temperature: body.temperature,
|
||||
topP: body.top_p,
|
||||
maxOutputTokens: body.max_tokens,
|
||||
maxOutputTokens: 65536,
|
||||
}).reduce((acc, [k, v]) => (Number.isFinite(+v) && +v >= 0 ? { ...acc, [k]: +v } : acc), {})
|
||||
|
||||
if (body.reasoning) {
|
||||
|
||||
Reference in New Issue
Block a user