We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2e2ab03 + f8e53c9 commit 2919144Copy full SHA for 2919144
services/llm/gemini/payloadBuilder.ts
@@ -178,7 +178,7 @@ export function prepareChatPayload(
178
const configForApi: any = {
179
systemInstruction: systemInstruction || undefined,
180
temperature: settingsSource.temperature,
181
- maxOutputTokens: settingsSource.maxOutputTokens,
+ maxOutputTokens: Math.min(settingsSource.maxOutputTokens, 65536)
182
};
183
184
if (showThoughts) {
0 commit comments