Skip to content

Support for providers with different name #4

@kiblik

Description

@kiblik

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

  • My request is related to LiteLLM model discovery, configuration, or routing

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions