Skip to content

[Feature]: Improve OpenAPI schema #10954

@mickvangelderen

Description

@mickvangelderen

The Feature

I tried generating a client for LiteLLM from the openapi schema generated by FastAPI but encountered the following issues:

  • "/model/info" response is untyped (schema is {})
  • security property is 5-times duplicate of { "APIKeyHeader": [] } (not really an issue, since these are OR-ed together, but odd for sure)
  • bearer auth is missing, would expect to see something like
    components:
      securitySchemes:
        bearerAuth:
          type: http
          scheme: bearer
    

There might be more similar issues, particularly related to missing type information for certain routes. These are just the ones I stumbled upon.

Motivation, pitch

I would like to be able to generate a correct Client in statically typed languages.

Are you a ML Ops Team?

No

Twitter / LinkedIn details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions