langchain/libs/partners/deepseek
2025-02-21 21:14:19 -05:00
..
langchain_deepseek update deepseek 2025-02-21 21:14:19 -05:00
scripts
tests openai, deepseek: make _convert_chunk_to_generation_chunk an instance method (#29731) 2025-02-11 11:13:23 -08:00
.gitignore
LICENSE
Makefile infra: add UV_FROZEN to makefiles (#29642) 2025-02-06 14:36:54 -05:00
pyproject.toml multiple: fix uv path deps (#29790) 2025-02-13 21:32:34 +00:00
README.md docs: rename to langchain-deepseek in docs (#29587) 2025-02-04 14:22:17 -08:00
uv.lock multiple: fix uv path deps (#29790) 2025-02-13 21:32:34 +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.")