mirror of
https://github.com/hwchase17/langchain.git
synced 2025-05-09 01:00:01 +00:00
This PR upgrades community to a recent version of mypy. It inserts type: ignore on all existing failures.
11 lines
313 B
Python
11 lines
313 B
Python
"""Test CerebriumAI API wrapper."""
|
|
|
|
from langchain_community.llms.cerebriumai import CerebriumAI
|
|
|
|
|
|
def test_cerebriumai_call() -> None:
|
|
"""Test valid call to cerebriumai."""
|
|
llm = CerebriumAI(max_length=10) # type: ignore[call-arg]
|
|
output = llm.invoke("Say foo:")
|
|
assert isinstance(output, str)
|