What problem are you trying to solve?
I'm using multiple proxies, which are based on LiteLLM (or fully compatible with the used API). Because of this, I was forced to use different provider names for each endpoint (all works well if I use "npm": "@ai-sdk/openai-compatible" statement). Unfortunately, this plugin is able to fetch a list of models only if the provider is called exactly litellm.
Proposed solution
Is it possible to not check only providers where CHAT_PROVIDER_ID == 'litellm' but all where some special field is set? E.g. provider.*.options.litellm-compatible: true.
Alternatives considered
No response
Scope check
What problem are you trying to solve?
I'm using multiple proxies, which are based on LiteLLM (or fully compatible with the used API). Because of this, I was forced to use different provider names for each endpoint (all works well if I use
"npm": "@ai-sdk/openai-compatible"statement). Unfortunately, this plugin is able to fetch a list of models only if the provider is called exactlylitellm.Proposed solution
Is it possible to not check only providers where
CHAT_PROVIDER_ID == 'litellm'but all where some special field is set? E.g.provider.*.options.litellm-compatible: true.Alternatives considered
No response
Scope check