mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-04 07:27:51 +00:00
style: ruff-format the api_base repoint predicate (test-quality)
Generated-by: termag
This commit is contained in:
parent
59532a6037
commit
759b4e1cf6
1 changed files with 2 additions and 6 deletions
|
|
@ -2299,12 +2299,8 @@ class ModelManagementAuthChecks:
|
|||
repoints_endpoint: Final = incoming_params is not None and not incoming_params.keys().isdisjoint(
|
||||
("api_base", "base_url")
|
||||
)
|
||||
brings_own_key: Final = (
|
||||
incoming_params is not None and incoming_params.get("api_key") is not None
|
||||
)
|
||||
server_key_stays: Final = (
|
||||
stored.get("api_key") not in (None, "") and not brings_own_key
|
||||
)
|
||||
brings_own_key: Final = incoming_params is not None and incoming_params.get("api_key") is not None
|
||||
server_key_stays: Final = stored.get("api_key") not in (None, "") and not brings_own_key
|
||||
if repoints_endpoint and server_key_stays:
|
||||
raise ProxyException(
|
||||
message=(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue