mirror of
https://github.com/hwchase17/langchain
synced 2024-11-06 03:20:49 +00:00
019b6ebe8d
- **Description:** This PR enables LangChain to access the iFlyTek's Spark LLM via the chat_models wrapper. - **Dependencies:** websocket-client ^1.6.1 - **Tag maintainer:** @baskaryan ### SparkLLM chat model usage Get SparkLLM's app_id, api_key and api_secret from [iFlyTek SparkLLM API Console](https://console.xfyun.cn/services/bm3) (for more info, see [iFlyTek SparkLLM Intro](https://xinghuo.xfyun.cn/sparkapi) ), then set environment variables `IFLYTEK_SPARK_APP_ID`, `IFLYTEK_SPARK_API_KEY` and `IFLYTEK_SPARK_API_SECRET` or pass parameters when using it like the demo below: ```python3 from langchain.chat_models.sparkllm import ChatSparkLLM client = ChatSparkLLM( spark_app_id="<app_id>", spark_api_key="<api_key>", spark_api_secret="<api_secret>" ) ``` |
||
---|---|---|
.. | ||
__init__.py | ||
konko.py | ||
test_anthropic.py | ||
test_azureml_endpoint.py | ||
test_azureopenai.py | ||
test_baichuan.py | ||
test_bedrock.py | ||
test_ernie.py | ||
test_fireworks.py | ||
test_google_palm.py | ||
test_huggingface.py | ||
test_hunyuan.py | ||
test_imports.py | ||
test_javelin_ai_gateway.py | ||
test_llama_edge.py | ||
test_openai.py | ||
test_zhipuai.py |