The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(responses): pass api_base to the responses bridge check
Joshua Garnett3d648b7fe1ad
diff --git a/litellm/responses/litellm_completion_transformation/transformation.py b/litellm/responses/litellm_completion_transformation/transformation.pyindex bd4108a0d27..8d790024cfe 100644--- a/litellm/responses/litellm_completion_transformation/transformation.py+++ b/litellm/responses/litellm_completion_transformation/transformation.py@@ -316,6 +316,7 @@ class LiteLLMCompletionResponsesConfig:tools: Sequence[ChatCompletionToolParam | OpenAIMcpServerTool] | None,web_search_options: OpenAIWebSearchOptions | None,reasoning_param: Reasoning,+ api_base: str | None,) -> bool:"""Whether ``litellm.completion`` will route this model back onto the Responses API.@@ -333,6 +334,7 @@ class LiteLLMCompletionResponsesConfig:tools=tools,reasoning_effort=reasoning_param,reasoning_summary=reasoning_param.get("summary"),+ api_base=api_base,)except Exception as e: # noqa: BLE001 # a capability probe must never fail the request it probes forverbose_logger.debug(f"responses bridge: reasoning effort mode check failed: {e}")@@ -346,6 +348,7 @@ class LiteLLMCompletionResponsesConfig:custom_llm_provider: str | None,tools: Sequence[ChatCompletionToolParam | OpenAIMcpServerTool] | None = None,web_search_options: OpenAIWebSearchOptions | None = None,+ api_base: str | None = None,) -> Reasoning | str | None:"""Map the Responses ``reasoning`` param onto Chat Completions ``reasoning_effort``.@@ -366,6 +369,7 @@ class LiteLLMCompletionResponsesConfig:tools=tools,web_search_options=web_search_options,reasoning_param=reasoning_param,+ api_base=api_base,):return reasoning_paramreturn reasoning_param.get("effort")@@ -407,6 +411,7 @@ class LiteLLMCompletionResponsesConfig:custom_llm_provider=custom_llm_provider,tools=tools,web_search_options=web_search_options,+ api_base=kwargs.get("api_base"),))