langchain/libs/partners/deepseek
2025-06-30 13:59:35 -04:00
..
langchain_deepseek [Doc] Improve api doc for DeepSeek (#31655) 2025-06-20 19:47:54 +00:00
scripts
tests partners[lint]: run pyupgrade to get code in line with 3.9 standards (#30781) 2025-04-11 07:18:44 -04:00
.gitignore
LICENSE
Makefile infra: add UV_FROZEN to makefiles (#29642) 2025-02-06 14:36:54 -05:00
pyproject.toml langchain-deepseek[patch]: add ruff bandit rules (#31792) 2025-06-30 13:59:35 -04:00
README.md docs: rename to langchain-deepseek in docs (#29587) 2025-02-04 14:22:17 -08:00
uv.lock standard-tests: add benchmarks (#31302) 2025-05-29 15:21:37 +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.")