mirror of
https://github.com/hwchase17/langchain
synced 2024-11-11 19:11:02 +00:00
25fbe356b4
This PR upgrades community to a recent version of mypy. It inserts type: ignore on all existing failures.
14 lines
412 B
Python
14 lines
412 B
Python
"""Test ZhipuAI Chat API wrapper"""
|
|
|
|
import pytest
|
|
|
|
from langchain_community.chat_models.zhipuai import ChatZhipuAI
|
|
|
|
|
|
@pytest.mark.requires("httpx", "httpx_sse", "jwt")
|
|
def test_zhipuai_model_param() -> None:
|
|
llm = ChatZhipuAI(api_key="test", model="foo")
|
|
assert llm.model_name == "foo"
|
|
llm = ChatZhipuAI(api_key="test", model_name="foo") # type: ignore[call-arg]
|
|
assert llm.model_name == "foo"
|