DeepSeek逆向api
Project description
revDeepSeek
DeepSeek逆向API
安装
pip install revDeepSeek --upgrade
使用
具体用法可查看方法Type Hint
1.初始化
from revDeepSeek import Chatbot
chatbot = Chatbot("USER_TOKEN")
USER_TOKEN获取:
1.打开开发者工具,找到应用程序选项卡
2.如下图
2.使用
新建会话
res = chatbot.create_session()
session_id = res["id"] #会话ID
发送消息
res = chatbot.chat(
conversation_id=session_id, # 会话ID
prompt="你好", # 消息内容
parent_message_id=None, # 父消息ID
search=False, # 启用搜索
thinking=False, # 启用深度思考
file=None, # 文件二进制数据(上传文件需添加)
stream=False, # 启用流式输出
)
响应示例:
{
"content": "内容",
"type": "text",
"message_id": 100
}
获取会话列表
res = chatbot.get_session_list(count=100)
获取会话历史
res = chatbot.get_session_history(session_id=session_id)
删除会话
res = chatbot.delete_session(session_id=session_id)
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 revdeepseek-0.0.1.tar.gz.
File metadata
- Download URL: revdeepseek-0.0.1.tar.gz
- Upload date:
- Size: 372.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60492243750ae027f1498c96dca5d781c45474feb6e9bd49a51b7e9a4461ca92
|
|
| MD5 |
af969c2c791cd6bcbdd0edae965bedfb
|
|
| BLAKE2b-256 |
33d21b42160082ba43e152f937c53477859c625043fe7b22183f5cc3516b6cc5
|
Provenance
The following attestation bundles were made for revdeepseek-0.0.1.tar.gz:
Publisher:
python-publish.yml on old-dream321/revDeepSeek
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
revdeepseek-0.0.1.tar.gz -
Subject digest:
60492243750ae027f1498c96dca5d781c45474feb6e9bd49a51b7e9a4461ca92 - Sigstore transparency entry: 168146143
- Sigstore integration time:
-
Permalink:
old-dream321/revDeepSeek@94654c05da4108e6eb0c8ecfd881667ae58c81fe -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/old-dream321
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@94654c05da4108e6eb0c8ecfd881667ae58c81fe -
Trigger Event:
release
-
Statement type:
File details
Details for the file revdeepseek-0.0.1-py3-none-any.whl.
File metadata
- Download URL: revdeepseek-0.0.1-py3-none-any.whl
- Upload date:
- Size: 21.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c0cb72c2d5b2c4df4db47d55feb796136313422146e159a7e57e34363a65ab1
|
|
| MD5 |
1905da087f9f80a923ceb2769053554e
|
|
| BLAKE2b-256 |
c92d7448a89eabb69cb88b7a52bb44f2fdc700b8fe4320eb93be85ea8287478f
|
Provenance
The following attestation bundles were made for revdeepseek-0.0.1-py3-none-any.whl:
Publisher:
python-publish.yml on old-dream321/revDeepSeek
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
revdeepseek-0.0.1-py3-none-any.whl -
Subject digest:
2c0cb72c2d5b2c4df4db47d55feb796136313422146e159a7e57e34363a65ab1 - Sigstore transparency entry: 168146145
- Sigstore integration time:
-
Permalink:
old-dream321/revDeepSeek@94654c05da4108e6eb0c8ecfd881667ae58c81fe -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/old-dream321
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@94654c05da4108e6eb0c8ecfd881667ae58c81fe -
Trigger Event:
release
-
Statement type: