fix get_complete_url

This commit is contained in:
Ishaan Jaffer 2026-01-14 15:29:01 -08:00
parent 62187103b4
commit b658f6a988

View file

@ -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"