fix(ai): Correct Gemini thinking config structure

- Fixed thinkingConfig to be at top level, not nested under 'config'
- Matches Gemini API documentation structure
This commit is contained in:
Mario Zechner 2025-08-25 10:33:58 +02:00
parent 3e1422d3d7
commit 289e60ab88

View file

@ -63,11 +63,9 @@ export class GeminiLLM implements LLM<GeminiLLMOptions> {
// Add thinking configuration if enabled
if (options?.thinking?.enabled && this.supportsThinking()) {
config.config = {
thinkingConfig: {
includeThoughts: true,
thinkingBudget: options.thinking.budgetTokens ?? -1, // Default to dynamic
},
config.thinkingConfig = {
includeThoughts: true,
thinkingBudget: options.thinking.budgetTokens ?? -1, // Default to dynamic
};
}