mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-05-01 04:11:45 +00:00
Merge pull request #2243 from seefs001/feature/gemini-3
feat: gemini-3-pro
This commit is contained in:
@@ -141,6 +141,8 @@ func (r *GeminiChatRequest) SetTools(tools []GeminiChatTool) {
|
|||||||
type GeminiThinkingConfig struct {
|
type GeminiThinkingConfig struct {
|
||||||
IncludeThoughts bool `json:"includeThoughts,omitempty"`
|
IncludeThoughts bool `json:"includeThoughts,omitempty"`
|
||||||
ThinkingBudget *int `json:"thinkingBudget,omitempty"`
|
ThinkingBudget *int `json:"thinkingBudget,omitempty"`
|
||||||
|
// TODO Conflict with thinkingbudget.
|
||||||
|
// ThinkingLevel json.RawMessage `json:"thinkingLevel,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *GeminiThinkingConfig) SetThinkingBudget(budget int) {
|
func (c *GeminiThinkingConfig) SetThinkingBudget(budget int) {
|
||||||
@@ -184,6 +186,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,7 +212,11 @@ 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"`
|
||||||
|
// Optional. Media resolution for the input media.
|
||||||
|
MediaResolution json.RawMessage `json:"mediaResolution,omitempty"`
|
||||||
|
VideoMetadata json.RawMessage `json:"videoMetadata,omitempty"`
|
||||||
FileData *GeminiFileData `json:"fileData,omitempty"`
|
FileData *GeminiFileData `json:"fileData,omitempty"`
|
||||||
ExecutableCode *GeminiPartExecutableCode `json:"executableCode,omitempty"`
|
ExecutableCode *GeminiPartExecutableCode `json:"executableCode,omitempty"`
|
||||||
CodeExecutionResult *GeminiPartCodeExecutionResult `json:"codeExecutionResult,omitempty"`
|
CodeExecutionResult *GeminiPartCodeExecutionResult `json:"codeExecutionResult,omitempty"`
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user