Fix: Correctly relay FunctionResponse content for Gemini API

This commit is contained in:
RedwindA
2025-06-06 00:56:38 +08:00
parent cbda794143
commit f13e4bf486
2 changed files with 36 additions and 31 deletions

View File

@@ -27,14 +27,14 @@ type FunctionCall struct {
Arguments any `json:"args"`
}
type GeminiFunctionResponseContent struct {
Name string `json:"name"`
Content any `json:"content"`
}
// type GeminiFunctionResponseContent struct {
// Name string `json:"name"`
// Content any `json:"content"`
// }
type FunctionResponse struct {
Name string `json:"name"`
Response GeminiFunctionResponseContent `json:"response"`
Name string `json:"name"`
Response map[string]interface{} `json:"response"`
}
type GeminiPartExecutableCode struct {