Skip to content

The agent engineering platform.

Fixed the assignment of custom_llm_provider argument (#11628)

Tarun Thotakurac9d4d53545dd
diff --git a/libs/langchain/langchain/chat_models/litellm.py b/libs/langchain/langchain/chat_models/litellm.py
index 1a35f1d47d..a499ece4f7 100644
--- a/libs/langchain/langchain/chat_models/litellm.py
+++ b/libs/langchain/langchain/chat_models/litellm.py
@@ -207,6 +207,7 @@ class ChatLiteLLM(BaseChatModel):
"stream": self.streaming,
"n": self.n,
"temperature": self.temperature,
+ "custom_llm_provider": self.custom_llm_provider,
**self.model_kwargs,
}