You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/community/langchain_community/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>
5 months ago
..
__init__.py community[minor]: Prem AI langchain integration (#19113) 5 months ago
anthropic.py community[patch]: move pdf text tests to integration (#18746) 6 months ago
anyscale.py community[minor]: Add async_client for Anyscale Chat model (#18050) 6 months ago
azure_openai.py community[patch]: more deprecations (#15782) 8 months ago
azureml_endpoint.py community[patch]: Support Streaming in Azure Machine Learning (#18246) 5 months ago
baichuan.py community[patch]: callback before yield for _stream/_astream (#17907) 6 months ago
baidu_qianfan_endpoint.py community[patch]: Fix the error of Baidu Qianfan not passing the stop parameter (#18666) 5 months ago
bedrock.py community[patch]: gather token usage info in BedrockChat during generation (#19127) 5 months ago
cohere.py community[patch]: fix bug in cohere that `async for` a coroutine in ChatCohere (#19381) 5 months ago
dappier.py community[minor]: Dappier chat model integration (#19370) 5 months ago
databricks.py docs: fix databricks document url (#19096) 5 months ago
deepinfra.py community[patch]: callback before yield for _stream/_astream (#17907) 6 months ago
edenai.py community[patch]: callback before yield for _stream/_astream (#17907) 6 months ago
ernie.py community[patch]: chat model mypy fixes (#17061) 7 months ago
everlyai.py Do not issue beta or deprecation warnings on internal calls (#15641) 8 months ago
fake.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
fireworks.py community[patch]: deprecate community fireworks (#18544) 6 months ago
friendli.py community[minor]: Integration for `Friendli` LLM and `ChatFriendli` ChatModel. (#17913) 6 months ago
gigachat.py community[minor]: Added GigaChat Embeddings support + updated previous GigaChat integration (#19516) 5 months ago
google_palm.py Refactor: use SecretStr for palm chat-model (#15100) 8 months ago
gpt_router.py community[patch]: callback before yield for _stream/_astream (#17907) 6 months ago
huggingface.py community[patch]: chat hf typing fix (#18693) 6 months ago
human.py infra: add print rule to ruff (#16221) 7 months ago
hunyuan.py community[patch]: callback before yield for _stream/_astream (#17907) 6 months ago
javelin_ai_gateway.py community[patch]: chat model mypy fixes (#17061) 7 months ago
jinachat.py community[patch]: callback before yield for _stream/_astream (#17907) 6 months ago
kinetica.py community[patch]: type ignore fixes (#18395) 6 months ago
konko.py community: fix openai streaming throws 'AIMessageChunk' object has no attribute 'text' (#18006) 6 months ago
litellm.py community[patch]: callback before yield for _stream/_astream (#17907) 6 months ago
litellm_router.py community[patch]: callback before yield for _stream/_astream (#17907) 6 months ago
llama_edge.py community: fix openai streaming throws 'AIMessageChunk' object has no attribute 'text' (#18006) 6 months ago
maritalk.py community: Add model argument for maritalk models and better error handling (#19187) 5 months ago
meta.py docs: docstrings `langchain_community` update (#14889) 8 months ago
minimax.py community[patch]: Update minimax.py (#14384) 5 months ago
mlflow.py docs: fix databricks document url (#19096) 5 months ago
mlflow_ai_gateway.py community[patch]: chat model mypy fixes (#17061) 7 months ago
moonshot.py community[minor]: add support for Moonshot llm and chat model (#17100) 5 months ago
ollama.py ollama[patch]: delete suffix slash to avoid redirect (#18260) 6 months ago
openai.py community: fix openai streaming throws 'AIMessageChunk' object has no attribute 'text' (#18006) 6 months ago
pai_eas_endpoint.py community[patch]: add missing chunk parameter for _stream/_astream (#17807) 6 months ago
perplexity.py community[patch]: Invoke callback prior to yielding token (#18449) 6 months ago
premai.py community[minor]: Prem AI langchain integration (#19113) 5 months ago
promptlayer_openai.py Do not issue beta or deprecation warnings on internal calls (#15641) 8 months ago
solar.py community[minor]: Add solar model chat model (#18556) 5 months ago
sparkllm.py community[patch]: Fix sparkllm authentication problem. (#18651) 6 months ago
tongyi.py docs: ChatTongyi example error (#19013) 5 months ago
vertexai.py community[patch]: add missing chunk parameter for _stream/_astream (#17807) 6 months ago
volcengine_maas.py community[patch]: add stop parameter support to volcengine maas (#19052) 5 months ago
yandex.py community[patch]: YandexGPT Use recent yandexcloud sdk version (#19341) 5 months ago
yuan2.py community[patch]: fix yuan2 chat model errors while invoke. (#19015) 5 months ago
zhipuai.py community[minor]: Update ChatZhipuAI to support GLM-4 model (#16695) 5 months ago