mirror of
https://github.com/hwchase17/langchain
synced 2024-10-31 15:20:26 +00:00
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)
|