No project description provided
Project description
sparkdesk 讯飞星火大模型API
讯飞星火大模型API。支持 sync
和 async
。
安装
pip install 'sparkdesk[cli]'
讯飞星火 API 申请
讯飞星火的API需要前往官网进行申请。 新用户可获取一定量都免费额度。
CLI 使用方法
> python -m sparkdesk.cli --help
Usage: python -m sparkdesk.cli [OPTIONS]
Options:
--app-id TEXT [required]
--api-secret TEXT [required]
--api-key TEXT [required]
--api-version TEXT
--help Show this message and exit.
API使用方法
参考: sparkdesk/cli.py
和 sparkdesk/async/cli.py
接口返回数据结构参考官方文档 https://www.xfyun.cn/doc/spark/Web.html
TODO
- 添加返回JSON数据对应的 dataclass
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
sparkdesk-0.1.4.tar.gz
(6.0 kB
view details)
Built Distribution
File details
Details for the file sparkdesk-0.1.4.tar.gz
.
File metadata
- Download URL: sparkdesk-0.1.4.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.8 Darwin/22.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfd6368182e51531acda1d6a2e8ef002244271e200a16f2464380a4e2d1b4cb5 |
|
MD5 | 3c37f802ae74c4ebbda53e3592b16780 |
|
BLAKE2b-256 | af53df53d58b42f5a320affba3f650a4922213d8ef801c753da6045aaabcf846 |
File details
Details for the file sparkdesk-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: sparkdesk-0.1.4-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.8 Darwin/22.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4c21bac49ab8007823630d743104efe576d4c886b5f0c5254cb4ec2ab54ebdc |
|
MD5 | f1878aedc8ff84efaba9c4e855ae534e |
|
BLAKE2b-256 | 300a6e8b88f4fdb3db6bb634b7731337552b6f9f210058ca2e9180864cc89d41 |