langchain_deepseek_v4
LangChain chat model integration for the current DeepSeek Chat Completions API.
Install the distribution package and import the integration module:
pip install langchain_deepseek_v4
This implementation targets the DeepSeek API documented at https://api-docs.deepseek.com, including:
- Tool calling
- JSON structured output through DeepSeek JSON Output
- Thinking mode and
reasoning_content - Streaming chunks that preserve reasoning deltas
- Multi-turn conversations that pass tool-call reasoning back to DeepSeek
from langchain_deepseek import ChatDeepSeek
llm = ChatDeepSeek(
model="deepseek-v4-pro",
api_key="...",
thinking={"type": "enabled"},
reasoning_effort="high",
)
msg = llm.invoke("Say hello in JSON: {\"message\": \"...\"}")
Metadata
Release files for langchain-deepseek-v4 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| langchain_deepseek_v4-0.1.0.tar.gz | 14.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| langchain_deepseek_v4-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.2 kB
Release files / langchain_deepseek_v4-0.1.0.tar.gz
| Download URL | langchain_deepseek_v4-0.1.0.tar.gz |
|---|---|
| Size | 14.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b9b8b3987eab04bee41d013bc0b5d89f330a30a9369e4f354560f55bf0be2bbd
|
|
BLAKE2b-256 checksum How to use checksums |
dcb2980419753bf3e0f4cd479b44fc817e0a9aca652152c84cfc6d575f991be3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 25, 2026.
Transparency logRelease files / langchain_deepseek_v4-0.1.0-py3-none-any.whl
| Download URL | langchain_deepseek_v4-0.1.0-py3-none-any.whl |
|---|---|
| Size | 13.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f45293a54f2485c313b7c56e41d74fcf5899003e54368cf9fddc137a36ba6b5a
|
|
BLAKE2b-256 checksum How to use checksums |
19919a8aded8f8174ff793e04e143402e20560ba9c381e9a0333d24e5d56ee9e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 25, 2026.
Transparency log