No longer include 'IncludeThoughts' parameter with Gemini API
Google no longer provides thinking output via the API :(
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user