mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-18 04:10:51 +08:00
fix(registry): Remove gemini-2.5-flash-image Gemini models from gemini cli and add gemini-2.5-flash-image preview to AIStudio
These models were likely for internal preview or testing and are no longer relevant for public use.
This commit is contained in:
@@ -116,36 +116,6 @@ func GeminiModels() []*ModelInfo {
|
|||||||
SupportedGenerationMethods: []string{"generateContent", "countTokens", "createCachedContent", "batchGenerateContent"},
|
SupportedGenerationMethods: []string{"generateContent", "countTokens", "createCachedContent", "batchGenerateContent"},
|
||||||
Thinking: &ThinkingSupport{Min: 512, Max: 24576, ZeroAllowed: true, DynamicAllowed: true},
|
Thinking: &ThinkingSupport{Min: 512, Max: 24576, ZeroAllowed: true, DynamicAllowed: true},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
ID: "gemini-2.5-flash-image-preview",
|
|
||||||
Object: "model",
|
|
||||||
Created: time.Now().Unix(),
|
|
||||||
OwnedBy: "google",
|
|
||||||
Type: "gemini",
|
|
||||||
Name: "models/gemini-2.5-flash-image-preview",
|
|
||||||
Version: "2.5",
|
|
||||||
DisplayName: "Gemini 2.5 Flash Image Preview",
|
|
||||||
Description: "State-of-the-art image generation and editing model.",
|
|
||||||
InputTokenLimit: 1048576,
|
|
||||||
OutputTokenLimit: 8192,
|
|
||||||
SupportedGenerationMethods: []string{"generateContent", "countTokens", "createCachedContent", "batchGenerateContent"},
|
|
||||||
// image models don't support thinkingConfig; leave Thinking nil
|
|
||||||
},
|
|
||||||
{
|
|
||||||
ID: "gemini-2.5-flash-image",
|
|
||||||
Object: "model",
|
|
||||||
Created: time.Now().Unix(),
|
|
||||||
OwnedBy: "google",
|
|
||||||
Type: "gemini",
|
|
||||||
Name: "models/gemini-2.5-flash-image",
|
|
||||||
Version: "2.5",
|
|
||||||
DisplayName: "Gemini 2.5 Flash Image",
|
|
||||||
Description: "State-of-the-art image generation and editing model.",
|
|
||||||
InputTokenLimit: 1048576,
|
|
||||||
OutputTokenLimit: 8192,
|
|
||||||
SupportedGenerationMethods: []string{"generateContent", "countTokens", "createCachedContent", "batchGenerateContent"},
|
|
||||||
// image models don't support thinkingConfig; leave Thinking nil
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -158,52 +128,85 @@ func GetGeminiCLIModels() []*ModelInfo { return GeminiModels() }
|
|||||||
// GetAIStudioModels returns the Gemini model definitions for AI Studio integrations
|
// GetAIStudioModels returns the Gemini model definitions for AI Studio integrations
|
||||||
func GetAIStudioModels() []*ModelInfo {
|
func GetAIStudioModels() []*ModelInfo {
|
||||||
base := GeminiModels()
|
base := GeminiModels()
|
||||||
|
|
||||||
return append(base,
|
return append(base,
|
||||||
&ModelInfo{
|
[]*ModelInfo{
|
||||||
ID: "gemini-pro-latest",
|
{
|
||||||
Object: "model",
|
ID: "gemini-pro-latest",
|
||||||
Created: time.Now().Unix(),
|
Object: "model",
|
||||||
OwnedBy: "google",
|
Created: time.Now().Unix(),
|
||||||
Type: "gemini",
|
OwnedBy: "google",
|
||||||
Name: "models/gemini-pro-latest",
|
Type: "gemini",
|
||||||
Version: "2.5",
|
Name: "models/gemini-pro-latest",
|
||||||
DisplayName: "Gemini Pro Latest",
|
Version: "2.5",
|
||||||
Description: "Latest release of Gemini Pro",
|
DisplayName: "Gemini Pro Latest",
|
||||||
InputTokenLimit: 1048576,
|
Description: "Latest release of Gemini Pro",
|
||||||
OutputTokenLimit: 65536,
|
InputTokenLimit: 1048576,
|
||||||
SupportedGenerationMethods: []string{"generateContent", "countTokens", "createCachedContent", "batchGenerateContent"},
|
OutputTokenLimit: 65536,
|
||||||
Thinking: &ThinkingSupport{Min: 128, Max: 32768, ZeroAllowed: false, DynamicAllowed: true},
|
SupportedGenerationMethods: []string{"generateContent", "countTokens", "createCachedContent", "batchGenerateContent"},
|
||||||
},
|
Thinking: &ThinkingSupport{Min: 128, Max: 32768, ZeroAllowed: false, DynamicAllowed: true},
|
||||||
&ModelInfo{
|
},
|
||||||
ID: "gemini-flash-latest",
|
{
|
||||||
Object: "model",
|
ID: "gemini-flash-latest",
|
||||||
Created: time.Now().Unix(),
|
Object: "model",
|
||||||
OwnedBy: "google",
|
Created: time.Now().Unix(),
|
||||||
Type: "gemini",
|
OwnedBy: "google",
|
||||||
Name: "models/gemini-flash-latest",
|
Type: "gemini",
|
||||||
Version: "2.5",
|
Name: "models/gemini-flash-latest",
|
||||||
DisplayName: "Gemini Flash Latest",
|
Version: "2.5",
|
||||||
Description: "Latest release of Gemini Flash",
|
DisplayName: "Gemini Flash Latest",
|
||||||
InputTokenLimit: 1048576,
|
Description: "Latest release of Gemini Flash",
|
||||||
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: 0, Max: 24576, ZeroAllowed: true, DynamicAllowed: true},
|
||||||
&ModelInfo{
|
},
|
||||||
ID: "gemini-flash-lite-latest",
|
{
|
||||||
Object: "model",
|
ID: "gemini-flash-lite-latest",
|
||||||
Created: time.Now().Unix(),
|
Object: "model",
|
||||||
OwnedBy: "google",
|
Created: time.Now().Unix(),
|
||||||
Type: "gemini",
|
OwnedBy: "google",
|
||||||
Name: "models/gemini-flash-lite-latest",
|
Type: "gemini",
|
||||||
Version: "2.5",
|
Name: "models/gemini-flash-lite-latest",
|
||||||
DisplayName: "Gemini Flash-Lite Latest",
|
Version: "2.5",
|
||||||
Description: "Latest release of Gemini Flash-Lite",
|
DisplayName: "Gemini Flash-Lite Latest",
|
||||||
InputTokenLimit: 1048576,
|
Description: "Latest release of Gemini Flash-Lite",
|
||||||
OutputTokenLimit: 65536,
|
InputTokenLimit: 1048576,
|
||||||
SupportedGenerationMethods: []string{"generateContent", "countTokens", "createCachedContent", "batchGenerateContent"},
|
OutputTokenLimit: 65536,
|
||||||
Thinking: &ThinkingSupport{Min: 512, Max: 24576, ZeroAllowed: true, DynamicAllowed: true},
|
SupportedGenerationMethods: []string{"generateContent", "countTokens", "createCachedContent", "batchGenerateContent"},
|
||||||
},
|
Thinking: &ThinkingSupport{Min: 512, Max: 24576, ZeroAllowed: true, DynamicAllowed: true},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ID: "gemini-2.5-flash-image-preview",
|
||||||
|
Object: "model",
|
||||||
|
Created: time.Now().Unix(),
|
||||||
|
OwnedBy: "google",
|
||||||
|
Type: "gemini",
|
||||||
|
Name: "models/gemini-2.5-flash-image-preview",
|
||||||
|
Version: "2.5",
|
||||||
|
DisplayName: "Gemini 2.5 Flash Image Preview",
|
||||||
|
Description: "State-of-the-art image generation and editing model.",
|
||||||
|
InputTokenLimit: 1048576,
|
||||||
|
OutputTokenLimit: 8192,
|
||||||
|
SupportedGenerationMethods: []string{"generateContent", "countTokens", "createCachedContent", "batchGenerateContent"},
|
||||||
|
// image models don't support thinkingConfig; leave Thinking nil
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ID: "gemini-2.5-flash-image",
|
||||||
|
Object: "model",
|
||||||
|
Created: time.Now().Unix(),
|
||||||
|
OwnedBy: "google",
|
||||||
|
Type: "gemini",
|
||||||
|
Name: "models/gemini-2.5-flash-image",
|
||||||
|
Version: "2.5",
|
||||||
|
DisplayName: "Gemini 2.5 Flash Image",
|
||||||
|
Description: "State-of-the-art image generation and editing model.",
|
||||||
|
InputTokenLimit: 1048576,
|
||||||
|
OutputTokenLimit: 8192,
|
||||||
|
SupportedGenerationMethods: []string{"generateContent", "countTokens", "createCachedContent", "batchGenerateContent"},
|
||||||
|
// image models don't support thinkingConfig; leave Thinking nil
|
||||||
|
},
|
||||||
|
}...,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user