iFlytek
iFlytek is a Chinese information technology company established in 1999. It creates voice recognition software and voice-based internet/mobile products covering education, communication, music, intelligent toys industries.
Installation and Setupโ
- Get
SparkLLM
app_id, api_key and api_secret from iFlyTek SparkLLM API Console (for more info, see iFlyTek SparkLLM Intro). - Install the Python package (not for the embedding models):
pip install websocket-client
LLMsโ
See a usage example.
from langchain_community.llms import SparkLLM
API Reference:SparkLLM
Chat modelsโ
See a usage example.
from langchain_community.chat_models import ChatSparkLLM
API Reference:ChatSparkLLM
Embedding modelsโ
from langchain_community.embeddings import SparkLLMTextEmbeddings
API Reference:SparkLLMTextEmbeddings