mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-22 06:39:52 +00:00
- **Description:** This PR adds `api_base` to `_client_params` in the `chat_model` of LiteLLM to ensure it's included in API calls. Previously, `api_base` was set on the client but was not included in the parameters passed to the completion function. This change ensures that `api_base` is correctly passed to all API calls. - **Issue:** #14338 - **Tag maintainer:** @hwchase17 @agola11 - **Twitter handle:** @LMS_David_RS
This commit is contained in:
parent
3bd0a15506
commit
dcf047c48f
@ -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}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user