mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-16 06:53:16 +00:00
docs: Standardize Tongyi (#25103)
- **Description:** Standardize Tongyi LLM,include: - docs, the issue #24803 - model init arg names, the issue #20085
This commit is contained in:
@@ -27,3 +27,10 @@ def test_tongyi_generate_stream() -> None:
|
||||
print(output) # noqa: T201
|
||||
assert isinstance(output, LLMResult)
|
||||
assert isinstance(output.generations, list)
|
||||
|
||||
|
||||
def test_tongyi_with_param_alias() -> None:
|
||||
"""Test tongyi parameters alias"""
|
||||
llm = Tongyi(model="qwen-max", api_key="your-api_key") # type: ignore[call-arg]
|
||||
assert llm.model_name == "qwen-max"
|
||||
assert llm.dashscope_api_key == "your-api_key"
|
||||
|
Reference in New Issue
Block a user