langchain/libs/partners/deepseek
2025-03-21 17:14:31 +00:00
..
langchain_deepseek partner: ChatDeepSeek on openrouter not returning reasoning (#30240) 2025-03-21 16:35:37 +00:00
scripts
tests Revert "deepseek: temporarily bypass tests" (#30424) 2025-03-21 17:14:31 +00:00
.gitignore
LICENSE
Makefile infra: add UV_FROZEN to makefiles (#29642) 2025-02-06 14:36:54 -05:00
pyproject.toml deepseek: release 0.1.3 (#30422) 2025-03-21 16:39:50 +00:00
README.md docs: rename to langchain-deepseek in docs (#29587) 2025-02-04 14:22:17 -08:00
uv.lock deepseek: release 0.1.3 (#30422) 2025-03-21 16:39:50 +00:00

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.")