Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 1.1.1 instead.
Reason given by maintainers: old author

🚀 Langchain-Deepseek: Using the deepseek model in langchain

## Install
  • Install from source (Recommend)
cd langchain-deepseek
pip install -e .
  • Install from PyPI
pip install langchain-deepseek

Quick Start

  • All the code can be found in the examples
  • Set DeepSeek API key in environment if using DeepSeek models: export DEEPSEEK_API_KEY="sk-...".
  • Maybe you can try loading environment variables like this. Create a new .env file
DEEPSEEK_API_KEY="sk-..."
from dotenv import load_dotenv, find_dotenv
load_dotenv(find_dotenv(), override=True)
It works with the Langchain library
from langchain_deepseek import ChatDeepSeekAI
from langchain_core.output_parsers import StrOutputParser

llm = ChatDeepSeekAI(
    model="deepseek-chat",
    api_key="sk-...",
)

output_parser = StrOutputParser()
chain = llm | output_parser
response = chain.invoke("太阳系有几大行星?")
print(response)

🌟Citation

@article{guo2025langchain-deepseek,
title={langchain-deepseek: Using the deepseek model in langchain},
author={Runke Zhong},
year={2025}
}

保持热爱,奔赴星海!

这个世界上唯有两样东西能让我们的心灵感到深深的震撼:一是我们头上灿烂的星空,一是我们内心崇高的道德法则

Metadata

Release files for langchain-deepseek 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langchain-deepseek 0.0.1
File Size Uploaded
langchain_deepseek-0.0.1.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for langchain-deepseek 0.0.1
File Interpreter ABI Platform
langchain_deepseek-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.3 kB

Release files / langchain_deepseek-0.0.1.tar.gz

Download URL langchain_deepseek-0.0.1.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
16390eb9c6762e39ce18107f3d71db33dff0414fd3c3e8ee2cc2708abe61a58f
BLAKE2b-256 checksum
How to use checksums
e864b7c24cd64f1d12c4e55b70ed98fe492586734b3a466c25fdb594b09f69dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.1 CPython/3.10.14 Windows/10

Release files / langchain_deepseek-0.0.1-py3-none-any.whl

Download URL langchain_deepseek-0.0.1-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
af082f27eb9106c545470a56688a7683f6736daa26f34441238d6d995284877f
BLAKE2b-256 checksum
How to use checksums
7d5f7c2803998b780e78d4f54c5bf4d0d3ada60c0391af92cda1e452a8b3530c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.0.1 CPython/3.10.14 Windows/10

Release history Release notifications | RSS feed

1.1.1

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.3

2 release files

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page