fix: Update gemini model names. #5262
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds support for the new Gemini 2.5 Pro, Gemini 2.5 Flash, and Gemini 2.5 Flash Lite models in Onyx. This includes adding the model names to the backend list of available models and updating the frontend to display these models with user-friendly names. The older "preview" model names have been commented out, but retained in the code for possible future use.
How Has This Been Tested?
I verified that each new model name ("gemini-2.5-pro", "gemini-2.5-flash", and "gemini-2.5-flash-lite") works correctly when used in a search query within the Onyx application. This confirms that the models are properly integrated into both the backend and frontend and can be selected and used by users.
Backporting (check the box to trigger backport action)
Note: You have to check that the action passes, otherwise resolve the conflicts manually and tag the patches.
Summary by cubic
Add support for Gemini 2.5 Pro, Flash, and Flash Lite by updating the backend model list and UI display names. Replaces preview IDs with stable ones; preview entries are commented out for reference.