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.
安装与设置
- 从 科大讯飞 SparkLLM API 控制台 获取
SparkLLM个 app_id、api_key 和 api_secret(更多信息,请参见 科大讯飞 SparkLLM 简介)。 - 安装 Python 包(不包括嵌入模型):
pip install websocket-client
LLMs
查看一个 使用示例。
from langchain_community.llms import SparkLLM
API 参考:SparkLLM
聊天模型
查看一个 使用示例。
from langchain_community.chat_models import ChatSparkLLM
API 参考:ChatSparkLLM
嵌入模型
from langchain_community.embeddings import SparkLLMTextEmbeddings
API 参考:SparkLLMTextEmbeddings