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 details)
Built Distribution
File details
Details for the file sparkdesk-0.1.3.tar.gz
.
File metadata
- Download URL: sparkdesk-0.1.3.tar.gz
- Upload date:
- Size: 5.1 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 | c15f4be37f25f816fc8f01813e92b7b1b0fd0ffdc5b99952c50b9638fedc3cdb |
|
MD5 | d6f64870d7c3599641f5eefb0ce18c7f |
|
BLAKE2b-256 | 6abe5def22ceefeb8980ba621be7619acb53517e523b34f82498e6c1a9a33748 |
File details
Details for the file sparkdesk-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: sparkdesk-0.1.3-py3-none-any.whl
- Upload date:
- Size: 6.2 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 | ad32af4a67103cd58bb151f6129f640fa432d58befc04400a423413799aba758 |
|
MD5 | d892f7d9ffd6e194192dbda8e0ef23d6 |
|
BLAKE2b-256 | d11ef2b5eec5cf001ce31337352c61f4e4b4e88a918fc0b4f4e761765c47878b |