LangChain integration package for DeepSeek chat models
Project description
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\": \"...\"}")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file langchain_deepseek_v4-0.1.0.tar.gz.
File metadata
- Download URL: langchain_deepseek_v4-0.1.0.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9b8b3987eab04bee41d013bc0b5d89f330a30a9369e4f354560f55bf0be2bbd
|
|
| MD5 |
6221fe43c9444717fb0d4a200922ad9c
|
|
| BLAKE2b-256 |
dcb2980419753bf3e0f4cd479b44fc817e0a9aca652152c84cfc6d575f991be3
|
Provenance
The following attestation bundles were made for langchain_deepseek_v4-0.1.0.tar.gz:
Publisher:
publish_pypi.yml on hlcm0/langchain_deepseek_v4
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
langchain_deepseek_v4-0.1.0.tar.gz -
Subject digest:
b9b8b3987eab04bee41d013bc0b5d89f330a30a9369e4f354560f55bf0be2bbd - Sigstore transparency entry: 1381558800
- Sigstore integration time:
-
Permalink:
hlcm0/langchain_deepseek_v4@1e7f85c5222f45b5afa2f068eaf3a00e71df386a -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/hlcm0
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_pypi.yml@1e7f85c5222f45b5afa2f068eaf3a00e71df386a -
Trigger Event:
release
-
Statement type:
File details
Details for the file langchain_deepseek_v4-0.1.0-py3-none-any.whl.
File metadata
- Download URL: langchain_deepseek_v4-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f45293a54f2485c313b7c56e41d74fcf5899003e54368cf9fddc137a36ba6b5a
|
|
| MD5 |
3e4b41b39e24ed1231633b5245600482
|
|
| BLAKE2b-256 |
19919a8aded8f8174ff793e04e143402e20560ba9c381e9a0333d24e5d56ee9e
|
Provenance
The following attestation bundles were made for langchain_deepseek_v4-0.1.0-py3-none-any.whl:
Publisher:
publish_pypi.yml on hlcm0/langchain_deepseek_v4
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
langchain_deepseek_v4-0.1.0-py3-none-any.whl -
Subject digest:
f45293a54f2485c313b7c56e41d74fcf5899003e54368cf9fddc137a36ba6b5a - Sigstore transparency entry: 1381558922
- Sigstore integration time:
-
Permalink:
hlcm0/langchain_deepseek_v4@1e7f85c5222f45b5afa2f068eaf3a00e71df386a -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/hlcm0
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_pypi.yml@1e7f85c5222f45b5afa2f068eaf3a00e71df386a -
Trigger Event:
release
-
Statement type: