mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 09:01:14 +00:00
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:
parent
3e1422d3d7
commit
289e60ab88
1 changed files with 3 additions and 5 deletions
|
|
@ -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
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue