修改thinking config的设置,同时兼容gemini-2.5和gemini-2.0

This commit is contained in:
RandyZhang
2025-05-15 21:55:36 +08:00
parent cb4ee5e86a
commit 703859214b
2 changed files with 12 additions and 2 deletions

View File

@@ -79,5 +79,5 @@ type ChatGenerationConfig struct {
MaxOutputTokens int `json:"maxOutputTokens,omitempty"`
CandidateCount int `json:"candidateCount,omitempty"`
StopSequences []string `json:"stopSequences,omitempty"`
ThinkingConfig *ThinkingConfig `json:"thinkingConfig,omitempty"`
ThinkingConfig *ThinkingConfig `json:"thinkingConfig"`
}