Skip to content

fix: correct is_custom() docstring and get_model_info() enum comparison#622

Open
originaljayeshsharma wants to merge 1 commit into
virattt:mainfrom
originaljayeshsharma:fix/models-enum-and-docstring
Open

fix: correct is_custom() docstring and get_model_info() enum comparison#622
originaljayeshsharma wants to merge 1 commit into
virattt:mainfrom
originaljayeshsharma:fix/models-enum-and-docstring

Conversation

@originaljayeshsharma

Copy link
Copy Markdown

What

  • Fixed incorrect docstring in is_custom() that said "Gemini model" instead of "custom/placeholder model"
  • Fixed get_model_info() where model.provider (enum) was compared to a plain string, causing the function to always return None. Changed to model.provider.value.

Why

The provider comparison bug silently breaks every call to get_model_info(), making it impossible to look up any model by provider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant