Skip to main content

No project description provided

Project description

sparkdesk 讯飞星火大模型API

讯飞星火大模型API。支持 syncasync

安装

pip install 'sparkdesk[cli]'

讯飞星火 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]
  --api-version TEXT
  --help             Show this message and exit.

API使用方法

参考: sparkdesk/cli.pysparkdesk/async/cli.py 接口返回数据结构参考官方文档 https://www.xfyun.cn/doc/spark/Web.html

TODO

  1. 添加返回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.4.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distribution

sparkdesk-0.1.4-py3-none-any.whl (8.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page