Skip to main content

A Python package for deepseek to call API more easily

Project description

Deepseek

锟斤拷锟斤拷

锟斤拷锟斤拷一锟斤拷使锟斤拷Python锟斤拷DeepSeek API锟斤拷锟叫凤拷装锟侥库。

锟斤拷色

  1. 锟斤拷锟皆匡拷锟劫的碉拷锟矫憋拷锟截诧拷锟斤拷锟紻eepSeek API锟斤拷锟斤拷锟狡端碉拷DeepSeek API锟斤拷
  2. 锟杰癸拷锟斤拷DeepSeek锟斤拷锟截碉拷锟斤拷锟捷斤拷锟斤拷锟斤拷锟斤拷Markdown锟斤拷LaTeX锟斤拷锟侥碉拷转为锟斤拷锟侥憋拷锟斤拷
  3. 锟杰癸拷锟斤拷锟斤拷DeepSeek锟斤拷锟斤拷息锟斤拷录

锟斤拷锟斤拷使锟斤拷

锟斤拷装锟斤拷模锟斤拷

pip install deepseek

锟斤拷写一锟斤拷锟津单碉拷Python锟脚憋拷锟斤拷锟狡端碉拷DeepSeek API锟斤拷锟叫斤拷锟斤拷

from deepseek import DeepSeek, Messages

# 实锟斤拷锟斤拷DeepSeek锟斤拷锟斤拷
deepseek = DeepSeek.get_cloud_deepseek('your_api_key')

# 实锟斤拷锟斤拷Messages锟斤拷锟斤拷
messages = Messages()

while True:
    # 锟斤拷锟斤拷锟矫伙拷锟斤拷锟斤拷
    user_input = input('锟矫伙拷锟斤拷')
    
    if user_input == 'exit':
        break
    
    # 锟斤拷锟斤拷chat锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷
    response = deepseek.chat(messages, user_input)
    
    # 锟斤拷锟紸I锟截革拷
    print('AI锟斤拷', response)

锟斤拷细锟侥碉拷

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

deepseekapi-1.0.0.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

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

DeepseekAPI-1.0.0-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file deepseekapi-1.0.0.tar.gz.

File metadata

  • Download URL: deepseekapi-1.0.0.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.1

File hashes

Hashes for deepseekapi-1.0.0.tar.gz
Algorithm Hash digest
SHA256 45e0e2fc06a59455deeec8e7efcc71f48305f489725aad5006fe93932ce97c4f
MD5 899ca9fca8d22883091313060ac10279
BLAKE2b-256 6e4d60d9bb632282a79d556d55cd30d88f84df2d7ba8ad7faf718db57a4ded16

See more details on using hashes here.

File details

Details for the file DeepseekAPI-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: DeepseekAPI-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.1

File hashes

Hashes for DeepseekAPI-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 10668cd0b3d205cc7b909392136b4a5dd6a0fb696e00d3242c007cae8b33877f
MD5 f99e7fd6a7bd65dac26b65334ff9cfad
BLAKE2b-256 7ef57ac0617a8841444290eef7f407535447aa3a9512b0d467b601ebd3f3eea9

See more details on using hashes here.

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