Skip to content

Conversation

@zikajk
Copy link
Member

@zikajk zikajk commented Dec 26, 2025

Add fetchModels option to enable automatic model discovery from OpenAI-compatible providers.

  • fetchModels: true enables dynamic model discovery from /models endpoint
  • Static model configs override discovered models for customization
  • Graceful error handling with user-visible warnings

The feature is opt-in and only works with providers exposing OpenAI-compatible /models endpoints.

  • I added a entry in changelog under unreleased section.

Copy link
Member

@ericdallo ericdallo left a comment

Choose a reason for hiding this comment

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

That's cool! will take a closer look soon

@zikajk
Copy link
Member Author

zikajk commented Dec 26, 2025

@ericdallo I thought about making this the default when no models are filled in for a provider (for better UX), but fetching models takes some time so I decided not to (yet?).

Motivation: I have a lot of providers and I am lazy to fill in all models I might use.
I want to see when MiniMax2.1 will be available on Synthetic.new ;).

@zikajk zikajk force-pushed the dynamic-model-discovery branch from 676b98f to a03e175 Compare December 26, 2025 18:54
callbacks)

model-config
(:api provider-config)
Copy link
Member Author

Choose a reason for hiding this comment

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

@ericdallo I think this is the only place that can introduce some regression.
I am not quite sure what was the idea behind model-config check.

@zikajk zikajk force-pushed the dynamic-model-discovery branch from a03e175 to 0042ab6 Compare December 26, 2025 19:01
Add fetchModels option to enable automatic model discovery from OpenAI-compatible providers.

- fetchModels: true enables dynamic model discovery from /models endpoint
- Static model configs override discovered models for customization
- Graceful error handling with user-visible warnings

The feature is opt-in and only works with providers exposing OpenAI-compatible /models endpoints.
@zikajk zikajk force-pushed the dynamic-model-discovery branch from 0042ab6 to 7c382ab Compare December 26, 2025 19:02
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.

3 participants