From 43f8de89c59229675ecb8f31a9c8f975f862c5b8 Mon Sep 17 00:00:00 2001 From: Matt Low Date: Fri, 28 Mar 2025 07:31:30 -0600 Subject: [PATCH] No longer include 'IncludeThoughts' parameter with Gemini API Google no longer provides thinking output via the API :( --- pkg/provider/google/google.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pkg/provider/google/google.go b/pkg/provider/google/google.go index b6a827b..3e65f18 100644 --- a/pkg/provider/google/google.go +++ b/pkg/provider/google/google.go @@ -41,18 +41,11 @@ type Content struct { Parts []ContentPart `json:"parts"` } -type ThinkingConfig struct { - // Indicates whether to include thoughts in the response. If true, thoughts are returned - // only if the model supports thought and thoughts are available. - IncludeThoughts bool `json:"includeThoughts,omitempty"` -} - type GenerationConfig struct { MaxOutputTokens *int `json:"maxOutputTokens,omitempty"` Temperature *float32 `json:"temperature,omitempty"` TopP *float32 `json:"topP,omitempty"` TopK *int `json:"topK,omitempty"` - ThinkingConfig *ThinkingConfig `json:"thinkingConfig,omitempty"` } type GenerateContentRequest struct { @@ -249,9 +242,6 @@ func createGenerateContentRequest( MaxOutputTokens: ¶ms.MaxTokens, Temperature: ¶ms.Temperature, TopP: ¶ms.TopP, - ThinkingConfig: &ThinkingConfig{ - IncludeThoughts: true, - }, }, }