From d3fba9b40faab97e51e1f3886383342b097cea80 Mon Sep 17 00:00:00 2001 From: Shridhar Sukhani <25730420+shrisukhani@users.noreply.github.com> Date: Tue, 2 Dec 2025 17:51:31 -0800 Subject: [PATCH] fix: add missing config to Gemini client invoke method MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The invoke() method was not passing temperature and maxOutputTokens to the Gemini API, unlike invokeStructured() which correctly included these parameters. This meant users' temperature settings were silently ignored for regular (non-structured) Gemini calls. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/llm/providers/gemini.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/llm/providers/gemini.ts b/src/llm/providers/gemini.ts index 8b591f7..86cad5c 100644 --- a/src/llm/providers/gemini.ts +++ b/src/llm/providers/gemini.ts @@ -53,6 +53,10 @@ export class GeminiClient implements HyperAgentLLM { const response = await this.client.models.generateContent({ model: this.model, contents: geminiMessages as any, + config: { + temperature: options?.temperature ?? this.temperature, + maxOutputTokens: options?.maxTokens ?? this.maxTokens, + }, }); const text = response.text;