We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f716cf8 commit f51ec13Copy full SHA for f51ec13
src/api/providers/gemini.ts
@@ -74,8 +74,12 @@ export class GeminiHandler extends BaseProvider implements SingleCompletionHandl
74
if (id?.endsWith(":thinking")) {
75
id = id.slice(0, -9) as GeminiModelId
76
info = geminiModels[id]
77
- thinkingConfig = { includeThoughts: true, thinkingBudget: 8192 }
78
- maxOutputTokens = info.maxTokens ?? undefined
+
+ thinkingConfig = this.options.modelMaxThinkingTokens
79
+ ? { thinkingBudget: this.options.modelMaxThinkingTokens }
80
+ : undefined
81
82
+ maxOutputTokens = this.options.modelMaxTokens ?? info.maxTokens ?? undefined
83
}
84
85
if (!info) {
0 commit comments