mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-24 13:07:53 +08:00
Gemini 3 Pro Preview Model Support (#3300)
* Update GeminiCLI default model to gemini-3-pro-preview and add model mapping * Update g4f/providers/any_model_map.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -519,7 +519,7 @@ class GeminiCLI(AsyncGeneratorProvider, ProviderModelMixin):
|
||||
label = "Google Gemini CLI"
|
||||
login_url = "https://github.com/GewoonJaap/gemini-cli-openai"
|
||||
|
||||
default_model = "gemini-2.5-pro"
|
||||
default_model = "gemini-3-pro-preview"
|
||||
models = [
|
||||
"gemini-2.5-pro",
|
||||
"gemini-2.5-flash",
|
||||
|
||||
@@ -521,6 +521,12 @@ gemini_2_5_pro = Model(
|
||||
best_provider = IterListProvider([Gemini, GeminiPro, GeminiCLI])
|
||||
)
|
||||
|
||||
gemini_3_pro_preview = Model(
|
||||
name = 'gemini-3-pro-preview',
|
||||
base_provider = 'Google',
|
||||
best_provider = GeminiCLI
|
||||
)
|
||||
|
||||
# codegemma
|
||||
codegemma_7b = Model(
|
||||
name = 'codegemma-7b',
|
||||
|
||||
@@ -405,6 +405,9 @@ model_map = {
|
||||
"OpenRouter": "google/gemini-2.5-pro-preview-05-06",
|
||||
"Yupp": "gemini-2.5-pro"
|
||||
},
|
||||
"gemini-3-pro-preview": {
|
||||
"GeminiCLI": "gemini-3-pro-preview"
|
||||
},
|
||||
"codegemma-7b": {
|
||||
"DeepInfra": "google/codegemma-7b-it",
|
||||
"Nvidia": "google/codegemma-7b"
|
||||
|
||||
Reference in New Issue
Block a user