langchain/tests/integration_tests/llms/test_cohere.py

11 lines
240 B
Python
Raw Normal View History

2022-10-24 21:51:15 +00:00
"""Test Cohere API wrapper."""
from langchain.llms.cohere import Cohere
def test_cohere_call() -> None:
"""Test valid call to cohere."""
llm = Cohere(max_tokens=10)
output = llm("Say foo:")
assert isinstance(output, str)