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/tests/integration_tests/chat_models
Pengcheng Liu 4cf523949a
community[patch]: Update model client to support vision model in Tong… (#21474)
- **Description:** Tongyi uses different client for chat model and
vision model. This PR chooses proper client based on model name to
support both chat model and vision model. Reference [tongyi
document](https://help.aliyun.com/zh/dashscope/developer-reference/tongyi-qianwen-vl-plus-api?spm=a2c4g.11186623.0.0.27404c9a7upm11)
for details.

```
from langchain_core.messages import HumanMessage
from langchain_community.chat_models import ChatTongyi

llm = ChatTongyi(model_name='qwen-vl-max')
image_message = {
    "image": "https://lilianweng.github.io/posts/2023-06-23-agent/agent-overview.png"
}
text_message = {
    "text": "summarize this picture",
}
message = HumanMessage(content=[text_message, image_message])
llm.invoke([message])
```

- **Issue:** None
- **Dependencies:** None
- **Twitter handle:** None
4 months ago
..
cassettes community[minor]: add Kinetica LLM wrapper (#17879) 7 months ago
__init__.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
test_anthropic.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_azure_openai.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_azureml_endpoint.py community[patch]: Support Streaming in Azure Machine Learning (#18246) 6 months ago
test_baichuan.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_baiduqianfan.py community[patch]: fix qianfan chat stream calling caused exception (#13800) 9 months ago
test_bedrock.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_coze.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_dappier.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_deepinfra.py community[minor]: DeepInfra support for chat models (#16380) 8 months ago
test_edenai.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_ernie.py patch: remove usage of llm, chat model __call__ (#20788) 5 months ago
test_fireworks.py patch: remove usage of llm, chat model __call__ (#20788) 5 months ago
test_friendli.py patch: remove usage of llm, chat model __call__ (#20788) 5 months ago
test_google_palm.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_gpt_router.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_hunyuan.py patch: remove usage of llm, chat model __call__ (#20788) 5 months ago
test_jinachat.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_kinetica.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_konko.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_litellm.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_litellm_router.py patch: remove usage of llm, chat model __call__ (#20788) 5 months ago
test_llama_edge.py patch: remove usage of llm, chat model __call__ (#20788) 5 months ago
test_octoai.py patch: remove usage of llm, chat model __call__ (#20788) 5 months ago
test_openai.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_pai_eas_chat_endpoint.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_premai.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_promptlayer_openai.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_qianfan_endpoint.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_sparkllm.py community[patch]: standardized sparkllm init args (#21633) 4 months ago
test_tongyi.py community[patch]: Update model client to support vision model in Tong… (#21474) 4 months ago
test_vertexai.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_volcengine_maas.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_yuan2.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_zhipuai.py patch: remove usage of llm, chat model __call__ (#20788) 5 months ago
text_mlx.py community[minor]: Add support for MLX models (chat & llm) (#18152) 6 months ago