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:
@@ -63,11 +63,9 @@ export class GeminiLLM implements LLM<GeminiLLMOptions> {
|
|||||||
|
|
||||||
// Add thinking configuration if enabled
|
// Add thinking configuration if enabled
|
||||||
if (options?.thinking?.enabled && this.supportsThinking()) {
|
if (options?.thinking?.enabled && this.supportsThinking()) {
|
||||||
config.config = {
|
config.thinkingConfig = {
|
||||||
thinkingConfig: {
|
includeThoughts: true,
|
||||||
includeThoughts: true,
|
thinkingBudget: options.thinking.budgetTokens ?? -1, // Default to dynamic
|
||||||
thinkingBudget: options.thinking.budgetTokens ?? -1, // Default to dynamic
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user