mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-18 09:45:23 +00:00
style(openrouter): format api_base in main.py
This commit is contained in:
parent
e57f77c748
commit
63a60e5765
1 changed files with 1 additions and 4 deletions
|
|
@ -8135,10 +8135,7 @@ def speech(
|
|||
)
|
||||
if custom_llm_provider == "openrouter":
|
||||
api_base = ( # rebind-ok: resolve openrouter speech api_base
|
||||
api_base
|
||||
or litellm.api_base
|
||||
or get_secret_str("OPENROUTER_API_BASE")
|
||||
or "https://openrouter.ai/api/v1"
|
||||
api_base or litellm.api_base or get_secret_str("OPENROUTER_API_BASE") or "https://openrouter.ai/api/v1"
|
||||
)
|
||||
api_key = ( # rebind-ok: resolve openrouter speech api_key
|
||||
api_key
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue