Skip to main content

sparkdesk 讯飞星火大模型API

讯飞星火大模型API。支持 sync 和 async 。

安装

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.py 和 sparkdesk/async/cli.py 接口返回数据结构参考官方文档 https://www.xfyun.cn/doc/spark/Web.html

TODO

  1. 添加返回JSON数据对应的 dataclass

Metadata

Release files for sparkdesk 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sparkdesk 0.1.4
File Size Uploaded Provenance Actions
sparkdesk-0.1.4.tar.gz 6.0 kB Without provenance Details for sparkdesk-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sparkdesk 0.1.4
File Interpreter ABI Platform Actions
sparkdesk-0.1.4-py3-none-any.whl Python 3 none any Details for sparkdesk-0.1.4-py3-none-any.whl

Total release size: 14.7 kB

Release files / sparkdesk-0.1.4.tar.gz

Download URL sparkdesk-0.1.4.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
bfd6368182e51531acda1d6a2e8ef002244271e200a16f2464380a4e2d1b4cb5
BLAKE2b-256 checksum
How to use checksums
af53df53d58b42f5a320affba3f650a4922213d8ef801c753da6045aaabcf846
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.10.8 Darwin/22.6.0

Release files / sparkdesk-0.1.4-py3-none-any.whl

Download URL sparkdesk-0.1.4-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e4c21bac49ab8007823630d743104efe576d4c886b5f0c5254cb4ec2ab54ebdc
BLAKE2b-256 checksum
How to use checksums
300a6e8b88f4fdb3db6bb634b7731337552b6f9f210058ca2e9180864cc89d41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.10.8 Darwin/22.6.0

Security for sparkdesk 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page