feat: gemini-3-pro

This commit is contained in:
Seefs
2025-11-19 01:46:51 +08:00
parent 62edac7c7f
commit bc1f747418
2 changed files with 8 additions and 2 deletions

View File

@@ -184,6 +184,10 @@ type FunctionCall struct {
type GeminiFunctionResponse struct { type GeminiFunctionResponse struct {
Name string `json:"name"` Name string `json:"name"`
Response map[string]interface{} `json:"response"` Response map[string]interface{} `json:"response"`
WillContinue json.RawMessage `json:"willContinue,omitempty"`
Scheduling json.RawMessage `json:"scheduling,omitempty"`
Parts json.RawMessage `json:"parts,omitempty"`
ID json.RawMessage `json:"id,omitempty"`
} }
type GeminiPartExecutableCode struct { type GeminiPartExecutableCode struct {
@@ -206,6 +210,7 @@ type GeminiPart struct {
Thought bool `json:"thought,omitempty"` Thought bool `json:"thought,omitempty"`
InlineData *GeminiInlineData `json:"inlineData,omitempty"` InlineData *GeminiInlineData `json:"inlineData,omitempty"`
FunctionCall *FunctionCall `json:"functionCall,omitempty"` FunctionCall *FunctionCall `json:"functionCall,omitempty"`
ThoughtSignature json.RawMessage `json:"thoughtSignature,omitempty"`
FunctionResponse *GeminiFunctionResponse `json:"functionResponse,omitempty"` FunctionResponse *GeminiFunctionResponse `json:"functionResponse,omitempty"`
FileData *GeminiFileData `json:"fileData,omitempty"` FileData *GeminiFileData `json:"fileData,omitempty"`
ExecutableCode *GeminiPartExecutableCode `json:"executableCode,omitempty"` ExecutableCode *GeminiPartExecutableCode `json:"executableCode,omitempty"`

View File

@@ -8,6 +8,7 @@ var ModelList = []string{
"gemini-1.5-pro-latest", "gemini-1.5-flash-latest", "gemini-1.5-pro-latest", "gemini-1.5-flash-latest",
// preview version // preview version
"gemini-2.0-flash-lite-preview", "gemini-2.0-flash-lite-preview",
"gemini-3-pro-preview",
// gemini exp // gemini exp
"gemini-exp-1206", "gemini-exp-1206",
// flash exp // flash exp