Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langchain_deepseek_v4-0.1.0.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langchain_deepseek_v4-0.1.0-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

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

Hashes for langchain_deepseek_v4-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b9b8b3987eab04bee41d013bc0b5d89f330a30a9369e4f354560f55bf0be2bbd
MD5 6221fe43c9444717fb0d4a200922ad9c
BLAKE2b-256 dcb2980419753bf3e0f4cd479b44fc817e0a9aca652152c84cfc6d575f991be3

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file langchain_deepseek_v4-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_deepseek_v4-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f45293a54f2485c313b7c56e41d74fcf5899003e54368cf9fddc137a36ba6b5a
MD5 3e4b41b39e24ed1231633b5245600482
BLAKE2b-256 19919a8aded8f8174ff793e04e143402e20560ba9c381e9a0333d24e5d56ee9e

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page