No project description provided
Project description
sparkdesk 讯飞星火大模型api
安装
TODO ...
讯飞星火 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]
--help Show this message and exit.
API使用方法
参考: sparkdesk/cli.py
接口返回数据结构参考官方文档 https://www.xfyun.cn/doc/spark/Web.html
TODO
- 添加 async API
- 添加返回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.2.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for sparkdesk-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd84d0ecd92ada347ea948bb3b3a90d53be26561ce30b33c65c1013368f27473 |
|
MD5 | 64a906ab6f99438c0f859d089ab73598 |
|
BLAKE2b-256 | 6ced12e03f353aa2f9f98f1b69e9c942efe5814559117fdc4c1a3f668222f796 |