Skip to content

[Feature]: Allow listing underlying models when using a wildcard #4903

Description

@merlijn

The Feature

Hi there. I am using this config

model_list:
  - model_name: "*"
    litellm_params:
      model: "openai/*"
      api_key: os.environ/OPENAI_API_KEY

It works in that I can call /chat/completions for example. However if I query /models or /v1/models I just get back a single model

{"data":[{"id":"*","object":"model","created":1677610602,"owned_by":"openai"}],"object":"list"}

It would be great if it would list the models available from openai so that I don't have to maintain that list in the UI app.

Motivation, pitch

It would be very convenient to auto populate available models in a UI. you can proxy the call to /models on the open ai (or other vendor) API and return the response.

Twitter / LinkedIn details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions