mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-18 20:30:51 +08:00
fix(registry): replace Gemini model list with updated stable and preview versions
This commit is contained in:
@@ -124,26 +124,53 @@ func GetGeminiModels() []*ModelInfo { return GeminiModels() }
|
|||||||
|
|
||||||
// GetGeminiCLIModels returns the standard Gemini model definitions
|
// GetGeminiCLIModels returns the standard Gemini model definitions
|
||||||
func GetGeminiCLIModels() []*ModelInfo {
|
func GetGeminiCLIModels() []*ModelInfo {
|
||||||
base := GeminiModels()
|
return []*ModelInfo{
|
||||||
return append(base,
|
{
|
||||||
[]*ModelInfo{
|
ID: "gemini-2.5-flash",
|
||||||
{
|
Object: "model",
|
||||||
ID: "gemini-3-pro-preview-11-2025",
|
Created: time.Now().Unix(),
|
||||||
Object: "model",
|
OwnedBy: "google",
|
||||||
Created: time.Now().Unix(),
|
Type: "gemini",
|
||||||
OwnedBy: "google",
|
Name: "models/gemini-2.5-flash",
|
||||||
Type: "gemini",
|
Version: "001",
|
||||||
Name: "models/gemini-3-pro-preview-11-2025",
|
DisplayName: "Gemini 2.5 Flash",
|
||||||
Version: "3",
|
Description: "Stable version of Gemini 2.5 Flash, our mid-size multimodal model that supports up to 1 million tokens, released in June of 2025.",
|
||||||
DisplayName: "Gemini 3 Pro Preview 11-2025",
|
InputTokenLimit: 1048576,
|
||||||
Description: "Latest preview of Gemini Pro",
|
OutputTokenLimit: 65536,
|
||||||
InputTokenLimit: 1048576,
|
SupportedGenerationMethods: []string{"generateContent", "countTokens", "createCachedContent", "batchGenerateContent"},
|
||||||
OutputTokenLimit: 65536,
|
Thinking: &ThinkingSupport{Min: 0, Max: 24576, ZeroAllowed: true, DynamicAllowed: true},
|
||||||
SupportedGenerationMethods: []string{"generateContent", "countTokens", "createCachedContent", "batchGenerateContent"},
|
},
|
||||||
Thinking: &ThinkingSupport{Min: 128, Max: 32768, ZeroAllowed: false, DynamicAllowed: true},
|
{
|
||||||
},
|
ID: "gemini-2.5-pro",
|
||||||
}...,
|
Object: "model",
|
||||||
)
|
Created: time.Now().Unix(),
|
||||||
|
OwnedBy: "google",
|
||||||
|
Type: "gemini",
|
||||||
|
Name: "models/gemini-2.5-pro",
|
||||||
|
Version: "2.5",
|
||||||
|
DisplayName: "Gemini 2.5 Pro",
|
||||||
|
Description: "Stable release (June 17th, 2025) of Gemini 2.5 Pro",
|
||||||
|
InputTokenLimit: 1048576,
|
||||||
|
OutputTokenLimit: 65536,
|
||||||
|
SupportedGenerationMethods: []string{"generateContent", "countTokens", "createCachedContent", "batchGenerateContent"},
|
||||||
|
Thinking: &ThinkingSupport{Min: 128, Max: 32768, ZeroAllowed: false, DynamicAllowed: true},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ID: "gemini-3-pro-preview-11-2025",
|
||||||
|
Object: "model",
|
||||||
|
Created: time.Now().Unix(),
|
||||||
|
OwnedBy: "google",
|
||||||
|
Type: "gemini",
|
||||||
|
Name: "models/gemini-3-pro-preview-11-2025",
|
||||||
|
Version: "3",
|
||||||
|
DisplayName: "Gemini 3 Pro Preview 11-2025",
|
||||||
|
Description: "Latest preview of Gemini Pro",
|
||||||
|
InputTokenLimit: 1048576,
|
||||||
|
OutputTokenLimit: 65536,
|
||||||
|
SupportedGenerationMethods: []string{"generateContent", "countTokens", "createCachedContent", "batchGenerateContent"},
|
||||||
|
Thinking: &ThinkingSupport{Min: 128, Max: 32768, ZeroAllowed: false, DynamicAllowed: true},
|
||||||
|
},
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetAIStudioModels returns the Gemini model definitions for AI Studio integrations
|
// GetAIStudioModels returns the Gemini model definitions for AI Studio integrations
|
||||||
|
|||||||
Reference in New Issue
Block a user