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.3.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for sparkdesk-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad32af4a67103cd58bb151f6129f640fa432d58befc04400a423413799aba758 |
|
MD5 | d892f7d9ffd6e194192dbda8e0ef23d6 |
|
BLAKE2b-256 | d11ef2b5eec5cf001ce31337352c61f4e4b4e88a918fc0b4f4e761765c47878b |