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
|
||||
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
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user