Improve Google Gemini model display names in UI#7
Open
ctroche99 wants to merge 1 commit into
Open
Conversation
Format raw model ids into human-friendly names (e.g. 'gemini-3.1-pro-preview' -> 'Gemini 3.1 Pro Preview') and drop the redundant 'Google Gemini:' prefix so the UI shows just the clean name. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HJ69Q3sp3yibgFKZTNEbgD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This PR improves the user experience by displaying clean, human-friendly model names in the UI instead of raw model IDs with prefixes.
Key Changes
_format_model_name()method that transforms raw model IDs into readable display names:gemini-3.1-pro-preview→Gemini 3.1 Pro Preview,veo-3.1-generate→Veo 3.1 Generatedisplay_namefield__init__method and thepipespropertyImplementation Details
The
_format_model_name()method intelligently handles different token types:https://claude.ai/code/session_01HJ69Q3sp3yibgFKZTNEbgD