langchain/libs/community/tests/integration_tests/chat_models
Chenhui Zhang a1f3e9f537
community[minor]: Update ChatZhipuAI to support GLM-4 model (#16695)
Description: Update `ChatZhipuAI` to support the latest `glm-4` model.
Issue: N/A
Dependencies: httpx, httpx-sse, PyJWT

The previous `ChatZhipuAI` implementation requires the `zhipuai`
package, and cannot call the latest GLM model. This is because
- The old version `zhipuai==1.*` doesn't support the latest model.
- `zhipuai==2.*` requires `pydantic V2`, which is incompatible with
'langchain-community'.

This re-implementation invokes the GLM model by sending HTTP requests to
[open.bigmodel.cn](https://open.bigmodel.cn/dev/api) via the `httpx`
package, and uses the `httpx-sse` package to handle stream events.

---------

Co-authored-by: zR <2448370773@qq.com>
2024-04-01 18:11:21 +00:00
..
cassettes community[minor]: add Kinetica LLM wrapper (#17879) 2024-02-22 16:02:00 -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 community[patch]: Support Streaming in Azure Machine Learning (#18246) 2024-03-28 23:38:20 +00:00
test_baichuan.py infra: add print rule to ruff (#16221) 2024-02-09 16:13:30 -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[patch]: gather token usage info in BedrockChat during generation (#19127) 2024-03-28 18:58:46 +00:00
test_dappier.py community[minor]: Dappier chat model integration (#19370) 2024-03-25 07:29:05 +00:00
test_deepinfra.py community[minor]: DeepInfra support for chat models (#16380) 2024-01-22 11:22:17 -08:00
test_edenai.py Langchain-community : EdenAI chat integration. (#16377) 2024-01-26 09:56:43 -05: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_friendli.py community[minor]: Integration for Friendli LLM and ChatFriendli ChatModel. (#17913) 2024-03-08 02:20:47 +00: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 infra: add print rule to ruff (#16221) 2024-02-09 16:13:30 -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 infra: add print rule to ruff (#16221) 2024-02-09 16:13:30 -08:00
test_kinetica.py community[minor]: add Kinetica LLM wrapper (#17879) 2024-02-22 16:02:00 -08:00
test_konko.py infra: add print rule to ruff (#16221) 2024-02-09 16:13:30 -08:00
test_litellm_router.py community[minor]: Add LiteLLM Router Integration (#15588) 2024-01-25 11:03:05 -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 infra: add print rule to ruff (#16221) 2024-02-09 16:13:30 -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_premai.py community[minor]: Prem AI langchain integration (#19113) 2024-03-26 01:37:19 +00: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 infra: add print rule to ruff (#16221) 2024-02-09 16:13:30 -08:00
test_sparkllm.py infra: add print rule to ruff (#16221) 2024-02-09 16:13:30 -08:00
test_tongyi.py infra: add print rule to ruff (#16221) 2024-02-09 16:13:30 -08:00
test_vertexai.py infra: add print rule to ruff (#16221) 2024-02-09 16:13:30 -08:00
test_volcengine_maas.py community[patch]: add stop parameter support to volcengine maas (#19052) 2024-03-17 01:58:50 +00:00
test_yuan2.py community[patch]: fix yuan2 chat model errors while invoke. (#19015) 2024-03-15 16:28:36 -07:00
test_zhipuai.py community[minor]: Update ChatZhipuAI to support GLM-4 model (#16695) 2024-04-01 18:11:21 +00:00