mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-09 08:18:12 +00:00
style: black 24.10.0 formatting
Wraps the resolved_key fallback chain to satisfy the repo's pinned black version (the 4-tuple was on one >88-char line).
This commit is contained in:
parent
3c36302bd6
commit
a3eda778a0
1 changed files with 5 additions and 1 deletions
|
|
@ -69,7 +69,11 @@ def create_config_class(provider: SimpleProviderConfig):
|
|||
resolved_base = provider.base_url
|
||||
|
||||
# Resolve API key
|
||||
resolved_key = api_key or get_secret_str(provider.api_key_env) or provider.default_api_key
|
||||
resolved_key = (
|
||||
api_key
|
||||
or get_secret_str(provider.api_key_env)
|
||||
or provider.default_api_key
|
||||
)
|
||||
|
||||
return resolved_base, resolved_key
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue