mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-19 00:01:29 +00:00
fix(proxy): cover credentials by_model route param in lockout
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
5c2fc1c99d
commit
7f5278eab3
2 changed files with 2 additions and 2 deletions
|
|
@ -44,7 +44,7 @@ _DEPLOYMENT_MARKERS: Final = TypeAdapter(list[_DeploymentMarker])
|
|||
_ACCESS_CREDENTIAL_ROUTES: Final = (
|
||||
"/credentials",
|
||||
"/credentials/by_name/{credential_name:path}",
|
||||
"/credentials/by_model",
|
||||
"/credentials/by_model/{model_id}",
|
||||
"/model/info",
|
||||
"/v1/model/info",
|
||||
"/v2/model/info",
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ def test_insecure_master_key_warning_survives_redaction():
|
|||
("/model/unblock", "POST", None),
|
||||
("/credentials", "GET", "access_credentials"),
|
||||
("/credentials/by_name/my_creds", "GET", "access_credentials"),
|
||||
("/credentials/by_model", "GET", "access_credentials"),
|
||||
("/credentials/by_model/abc123", "GET", "access_credentials"),
|
||||
("/model/info", "GET", "access_credentials"),
|
||||
("/v1/model/info", "GET", "access_credentials"),
|
||||
("/v2/model/info", "GET", "access_credentials"),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue