mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 06:04:51 +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
|
// 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
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue