mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +00:00
fix get_complete_url
This commit is contained in:
parent
62187103b4
commit
b658f6a988
1 changed files with 7 additions and 2 deletions
|
|
@ -83,8 +83,13 @@ class OpenAIContainerConfig(BaseContainerConfig):
|
|||
) -> str:
|
||||
"""Get the complete URL for OpenAI container API.
|
||||
"""
|
||||
if api_base is None:
|
||||
api_base = "https://api.openai.com/v1"
|
||||
api_base = (
|
||||
api_base
|
||||
or litellm.api_base
|
||||
or get_secret_str("OPENAI_BASE_URL")
|
||||
or get_secret_str("OPENAI_API_BASE")
|
||||
or "https://api.openai.com/v1"
|
||||
)
|
||||
|
||||
return f"{api_base.rstrip('/')}/containers"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue