Discover and explore top open-source AI tools and projects—updated daily.
HildaMPython SDK for SparkDesk LLM API
Top 95.9% on SourcePulse
This Python package provides a convenient interface for integrating the iFlytek SparkDesk large language models into Python projects. It supports multiple versions of the SparkDesk API (v1.0 to v4.0) and offers a "Web Mode" for direct browser-based interaction, as well as an "API Mode" for programmatic access.
How It Works
The library offers two primary modes of interaction. "Web Mode" leverages browser cookies and specific tokens (cookie, fd, GtToken) captured via browser developer tools to interact with the SparkDesk web interface. "API Mode" uses official API credentials (app_id, api_key, api_secret) obtained from iFlytek for direct programmatic access to various model versions and an assistant API. Both modes support single-turn chat and streaming responses.
Quick Start & Requirements
pip install sparkdesk-api==1.6.1cookie, fd, and GtToken from the SparkDesk web interface.app_id, api_key, and api_secret obtained from iFlytek.Highlighted Details
Maintenance & Community
The project acknowledges contributions from other developers. There are no explicit links to community channels (Discord, Slack), roadmaps, or specific maintainer information.
Licensing & Compatibility
The README does not specify a license. This lack of explicit licensing information may pose compatibility issues for commercial or closed-source projects.
Limitations & Caveats
The "Web Mode" relies on browser-specific tokens that are subject to change by iFlytek, potentially breaking the functionality. Obtaining API credentials for "API Mode" requires application through the iFlytek website, which may involve a review process. The project does not specify Python version requirements beyond what pip handles.
11 months ago
Inactive
mistralai
openai