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.1.tar.gz
(5.0 kB
view details)
Built Distribution
File details
Details for the file sparkdesk-0.1.1.tar.gz
.
File metadata
- Download URL: sparkdesk-0.1.1.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 | c865e1ab29a8aa47f8040e85b7249c38a1e58c7561d43a73f0063db102f2e44d |
|
MD5 | 2a536e6d49f89f44f00fe9f684ad4cce |
|
BLAKE2b-256 | d3323b4a8db52df4b8fbf09bc781bc1cdab8ace11977711cd4f5a5a3500e2516 |
File details
Details for the file sparkdesk-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: sparkdesk-0.1.1-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 | 82eec112fc3085610cabbb0b7b5470e83feccef5bab6cbb9bc9446bc59c9ef0e |
|
MD5 | bc8b0df46d670fa635959709000e28d1 |
|
BLAKE2b-256 | 51e3ae83a68b307842b7ad323022fe44e681c00620f89ccac4abe7944b9e474d |