Skip to content

Conversation

tombii
Copy link

@tombii tombii commented Sep 19, 2025

Title

Added to enable LLM API keys to see models. For example when using a LLM API key in an application such as Kilo Code or OpenWebUI, it should be able to populate the list of models and get some basic info about them.

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have Added testing in the tests/litellm/ directory, Adding at least 1 test is a hard requirement - see details
  • I have added a screenshot of my new test passing locally
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible, it only solves 1 specific problem

Type

🐛 Bug Fix

Changes

image

Added '/model/info' and '/v1/model/info' to the list of routes
classified as LLM API routes for virtual key authentication.
This ensures these routes are properly included when checking
permissions for LLM API keys.
Copy link

vercel bot commented Sep 19, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
litellm Ready Ready Preview Comment Sep 19, 2025 9:38am

@tombii
Copy link
Author

tombii commented Sep 19, 2025

The failing check seems to be unrelated to this PR.

Copy link
Contributor

@ishaan-jaff ishaan-jaff left a comment

Choose a reason for hiding this comment

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

+ passthrough_routes_wildcard
+ apply_guardrail_routes
+ mcp_routes
+ ["/model/info", "/model/info"]
Copy link
Contributor

Choose a reason for hiding this comment

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

define model_info_routes = ["/model/info", "/v1/model/info"] and then use the variable below

Copy link
Author

Choose a reason for hiding this comment

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

@ishaan-jaff Any reason not to include /v2/model/info?
For example management_routes only includes "/model/info", but not "/v1/model/info" or "/v2/model/info". Any difference, in that case we could use model_info_routes for all.

@krrishdholakia
Copy link
Contributor

/v1/models is already a supported endpoint - which does work with openwebui

why is this PR needed? @tombii

@tombii
Copy link
Author

tombii commented Sep 21, 2025

Now working so let's close.

@tombii tombii closed this Sep 21, 2025
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