Skip to main content

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


Download files

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

Source Distribution

revdeepseek-0.0.1.tar.gz (372.1 kB view details)

Uploaded Source

Built Distribution

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

revdeepseek-0.0.1-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

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

Hashes for revdeepseek-0.0.1.tar.gz
Algorithm Hash digest
SHA256 60492243750ae027f1498c96dca5d781c45474feb6e9bd49a51b7e9a4461ca92
MD5 af969c2c791cd6bcbdd0edae965bedfb
BLAKE2b-256 33d21b42160082ba43e152f937c53477859c625043fe7b22183f5cc3516b6cc5

See more details on using hashes here.

Provenance

The following attestation bundles were made for revdeepseek-0.0.1.tar.gz:

Publisher: python-publish.yml on old-dream321/revDeepSeek

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

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

Hashes for revdeepseek-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2c0cb72c2d5b2c4df4db47d55feb796136313422146e159a7e57e34363a65ab1
MD5 1905da087f9f80a923ceb2769053554e
BLAKE2b-256 c92d7448a89eabb69cb88b7a52bb44f2fdc700b8fe4320eb93be85ea8287478f

See more details on using hashes here.

Provenance

The following attestation bundles were made for revdeepseek-0.0.1-py3-none-any.whl:

Publisher: python-publish.yml on old-dream321/revDeepSeek

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