A Python package for deepseek to call API more easily
Project description
Deepseek
锟斤拷锟斤拷
锟斤拷锟斤拷一锟斤拷使锟斤拷Python锟斤拷DeepSeek API锟斤拷锟叫凤拷装锟侥库。
锟斤拷色
- 锟斤拷锟皆匡拷锟劫的碉拷锟矫憋拷锟截诧拷锟斤拷锟紻eepSeek API锟斤拷锟斤拷锟狡端碉拷DeepSeek API锟斤拷
- 锟杰癸拷锟斤拷DeepSeek锟斤拷锟截碉拷锟斤拷锟捷斤拷锟斤拷锟斤拷锟斤拷Markdown锟斤拷LaTeX锟斤拷锟侥碉拷转为锟斤拷锟侥憋拷锟斤拷
- 锟杰癸拷锟斤拷锟斤拷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
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
deepseekapi-1.0.0.tar.gz
(13.6 kB
view details)
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45e0e2fc06a59455deeec8e7efcc71f48305f489725aad5006fe93932ce97c4f
|
|
| MD5 |
899ca9fca8d22883091313060ac10279
|
|
| BLAKE2b-256 |
6e4d60d9bb632282a79d556d55cd30d88f84df2d7ba8ad7faf718db57a4ded16
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10668cd0b3d205cc7b909392136b4a5dd6a0fb696e00d3242c007cae8b33877f
|
|
| MD5 |
f99e7fd6a7bd65dac26b65334ff9cfad
|
|
| BLAKE2b-256 |
7ef57ac0617a8841444290eef7f407535447aa3a9512b0d467b601ebd3f3eea9
|