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 details)
Built Distribution
File details
Details for the file sparkdesk-0.1.2.tar.gz
.
File metadata
- Download URL: sparkdesk-0.1.2.tar.gz
- Upload date:
- Size: 5.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 | 4df7fc1b580d8228588cba263f9d54d3c0b954a1414d2480cb5b1d3fd3b91ecf |
|
MD5 | 383ff17d21330c9057eca8b4851020a7 |
|
BLAKE2b-256 | e581aa0cb19e6be0931151839d0a5ff6b4d334504a5c0ea85bcd3d84dbec2796 |
File details
Details for the file sparkdesk-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: sparkdesk-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.1 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 | fd84d0ecd92ada347ea948bb3b3a90d53be26561ce30b33c65c1013368f27473 |
|
MD5 | 64a906ab6f99438c0f859d089ab73598 |
|
BLAKE2b-256 | 6ced12e03f353aa2f9f98f1b69e9c942efe5814559117fdc4c1a3f668222f796 |