Skip to content

Conversation

@TerminallyLazy
Copy link
Contributor

Replace static model name text inputs with dynamic dropdowns that fetch available models directly from each provider's API based on configured API keys.

Supported providers:

  • OpenAI, Anthropic, Google Gemini, Groq, Mistral, DeepSeek, xAI
  • OpenRouter, SambaNova
  • Any OpenAI-compatible provider with custom api_base

Changes:

  • Add python/helpers/model_discovery.py for API-based model fetching
  • Add python/api/settings_refresh_models.py endpoint
  • Convert model name fields from text to select with dynamic options
  • Add frontend handlers for provider change and custom model entry
  • Include 1-hour cache with force refresh capability
  • Preserve "Custom (enter manually)" option for unlisted models

Replace static model name text inputs with dynamic dropdowns that fetch
available models directly from each provider's API based on configured
API keys.

Supported providers:
- OpenAI, Anthropic, Google Gemini, Groq, Mistral, DeepSeek, xAI
- OpenRouter, SambaNova
- Any OpenAI-compatible provider with custom api_base

Changes:
- Add python/helpers/model_discovery.py for API-based model fetching
- Add python/api/settings_refresh_models.py endpoint
- Convert model name fields from text to select with dynamic options
- Add frontend handlers for provider change and custom model entry
- Include 1-hour cache with force refresh capability
- Preserve "Custom (enter manually)" option for unlisted models

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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