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:
Andrea Lops
2025-12-22 13:44:30 +01:00
committed by GitHub
parent ddcdcef882
commit 66841752ec
3 changed files with 10 additions and 1 deletions

View File

@@ -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",

View File

@@ -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',

View File

@@ -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"