mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-25 04:49:17 +00:00
1. Make `_convert_chunk_to_generation_chunk` an instance method on BaseChatOpenAI 2. Override on ChatDeepSeek to add `"reasoning_content"` to message additional_kwargs. Resolves https://github.com/langchain-ai/langchain/issues/29513
langchain-deepseek
This package contains the LangChain integration with the DeepSeek API
Installation
pip install -U langchain-deepseek
And you should configure credentials by setting the following environment variables:
DEEPSEEK_API_KEY
Chat Models
ChatDeepSeek
class exposes chat models from DeepSeek.
from langchain_deepseek import ChatDeepSeek
llm = ChatDeepSeek(model="deepseek-chat")
llm.invoke("Sing a ballad of LangChain.")