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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file sparkdesk-0.1.4.tar.gz.

File metadata

  • Download URL: sparkdesk-0.1.4.tar.gz
  • Upload date:
  • Size: 6.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

Hashes for sparkdesk-0.1.4.tar.gz
Algorithm Hash digest
SHA256 bfd6368182e51531acda1d6a2e8ef002244271e200a16f2464380a4e2d1b4cb5
MD5 3c37f802ae74c4ebbda53e3592b16780
BLAKE2b-256 af53df53d58b42f5a320affba3f650a4922213d8ef801c753da6045aaabcf846

See more details on using hashes here.

File details

Details for the file sparkdesk-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: sparkdesk-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 8.6 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

Hashes for sparkdesk-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e4c21bac49ab8007823630d743104efe576d4c886b5f0c5254cb4ec2ab54ebdc
MD5 f1878aedc8ff84efaba9c4e855ae534e
BLAKE2b-256 300a6e8b88f4fdb3db6bb634b7731337552b6f9f210058ca2e9180864cc89d41

See more details on using hashes here.

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