mirror of
https://github.com/hwchase17/langchain
synced 2024-11-08 07:10:35 +00:00
c66755b661
#### Who can review? Tag maintainers/contributors who might be interested: @hwchase17 - project lead - @agola11 --------- Co-authored-by: Yessen Kanapin <yessen@deepinfra.com>
11 lines
282 B
Python
11 lines
282 B
Python
"""Test DeepInfra API wrapper."""
|
|
|
|
from langchain.llms.deepinfra import DeepInfra
|
|
|
|
|
|
def test_deepinfra_call() -> None:
|
|
"""Test valid call to DeepInfra."""
|
|
llm = DeepInfra(model_id="google/flan-t5-small")
|
|
output = llm("What is 2 + 2?")
|
|
assert isinstance(output, str)
|