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
.envfile
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)
| File | Size | Uploaded | |
|---|---|---|---|
| langchain_deepseek-0.0.1.tar.gz | 4.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|