langchain/libs/community/tests/integration_tests/chat_models
Xudong Sun 019b6ebe8d
community[minor]: Add iFlyTek Spark LLM chat model support (#13389)
- **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>"
)
```
2024-01-23 19:23:46 -08:00
..
__init__.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
test_anthropic.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
test_azure_openai.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
test_azureml_endpoint.py feat: adding paygo api support for Azure ML / Azure AI Studio (#14560) 2024-01-23 17:08:51 -08:00
test_baichuan.py community: Fix Baichuan Chat. (#15207) 2024-01-23 17:01:57 -08:00
test_baiduqianfan.py community[patch]: fix qianfan chat stream calling caused exception (#13800) 2024-01-09 15:29:25 -08:00
test_bedrock.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
test_deepinfra.py community[minor]: DeepInfra support for chat models (#16380) 2024-01-22 11:22:17 -08:00
test_ernie.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
test_fireworks.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
test_google_palm.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
test_gpt_router.py Refactor: use SecretStr for GPTRouter chat-model (#15101) 2024-01-01 15:20:26 -08:00
test_hunyuan.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
test_jinachat.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
test_konko.py community[minor]: Adding Konko Completion endpoint (#15570) 2024-01-23 18:22:32 -08:00
test_litellm.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
test_llama_edge.py feat: Implement stream interface (#15875) 2024-01-11 21:32:48 -08:00
test_openai.py community: replace deprecated davinci models (#14860) 2023-12-18 13:49:46 -08:00
test_pai_eas_chat_endpoint.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
test_promptlayer_openai.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
test_qianfan_endpoint.py community[patch]: fix qianfan chat stream calling caused exception (#13800) 2024-01-09 15:29:25 -08:00
test_sparkllm.py community[minor]: Add iFlyTek Spark LLM chat model support (#13389) 2024-01-23 19:23:46 -08:00
test_tongyi.py Refactor: use SecretStr for tongyi chat-model (#15102) 2024-01-02 15:45:23 -08:00
test_vertexai.py Update Vertex AI to include Gemini (#14670) 2023-12-13 10:45:02 -08:00
test_volcengine_maas.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
test_zhipuai.py community: Integration of New Chat Model Based on ChatGLM3 via ZhipuAI API (#15105) 2024-01-01 15:17:03 -08:00