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
sparkdesk-0.1.4.tar.gz 6.0 kB Details

Built distribution (wheel)

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

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

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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