Skip to content

The agent engineering platform.

add api_base to _client_params (community version of #14393) (#14644)

Daviddcf047c48f86
diff --git a/libs/community/langchain_community/chat_models/litellm.py b/libs/community/langchain_community/chat_models/litellm.py
index fb30d7463c..cb6a2107d3 100644
--- a/libs/community/langchain_community/chat_models/litellm.py
+++ b/libs/community/langchain_community/chat_models/litellm.py
@@ -223,6 +223,7 @@ class ChatLiteLLM(BaseChatModel):
creds: Dict[str, Any] = {
"model": set_model_value,
"force_timeout": self.request_timeout,
+ "api_base": self.api_base,
}
return {**self._default_params, **creds}