Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ async def get_model_config():
name="Google",
supportsCustomModel=True,
models=[
Model(id="gemini-3-pro", name="Gemini 3 Pro"),
Model(id="gemini-2.5-flash", name="Gemini 2.5 Flash")
Comment on lines +220 to 221
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The order of models in the fallback list is inconsistent with the main configuration in generator.json. In the configuration file, gemini-2.5-flash is the first entry and the designated default model for the Google provider. Placing gemini-3-pro at the top of the list in this fallback path might lead to it being incorrectly selected as the default model by the frontend if the configuration fails to load. It is better to maintain a consistent order across both the success and fallback paths.

Suggested change
Model(id="gemini-3-pro", name="Gemini 3 Pro"),
Model(id="gemini-2.5-flash", name="Gemini 2.5 Flash")
Model(id="gemini-2.5-flash", name="Gemini 2.5 Flash"),
Model(id="gemini-3-pro", name="Gemini 3 Pro")

]
)
Expand Down
6 changes: 5 additions & 1 deletion api/config/generator.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
"temperature": 1.0,
"top_p": 0.8,
"top_k": 20
},
"gemini-3-pro": {
"temperature": 1.0,
"top_p": 0.8,
"top_k": 20
}
}
},
Expand Down Expand Up @@ -196,4 +201,3 @@
}
}
}