mirror of
https://github.com/hwchase17/langchain.git
synced 2025-05-05 07:08:03 +00:00
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"
|