mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-12 12:59:07 +00:00
community[patch]: Update root_validators ChatModels: ChatBaichuan, QianfanChatEndpoint, MiniMaxChat, ChatSparkLLM, ChatZhipuAI (#22853)
This PR updates root validators for: - ChatModels: ChatBaichuan, QianfanChatEndpoint, MiniMaxChat, ChatSparkLLM, ChatZhipuAI Issues #22819 --------- Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com>
This commit is contained in:
@@ -107,7 +107,7 @@ def test_baichuan_key_masked_when_passed_from_env(
|
||||
"""Test initialization with an API key provided via an env variable"""
|
||||
monkeypatch.setenv("BAICHUAN_API_KEY", "test-api-key")
|
||||
|
||||
chat = ChatBaichuan()
|
||||
chat = ChatBaichuan() # type: ignore[call-arg]
|
||||
print(chat.baichuan_api_key, end="") # noqa: T201
|
||||
captured = capsys.readouterr()
|
||||
assert captured.out == "**********"
|
||||
|
Reference in New Issue
Block a user