feat: 兼容OpenAI格式下设置gemini模型联网搜索 #615

This commit is contained in:
CalciumIon
2024-12-12 17:58:25 +08:00
parent ee03e71e81
commit e54bb12a96
2 changed files with 17 additions and 5 deletions
+1
View File
@@ -34,6 +34,7 @@ type GeminiChatSafetySettings struct {
}
type GeminiChatTools struct {
GoogleSearch any `json:"googleSearch,omitempty"`
FunctionDeclarations any `json:"functionDeclarations,omitempty"`
}