mirror of
https://github.com/hwchase17/langchain
synced 2024-10-29 17:07:25 +00:00
11 lines
306 B
Python
11 lines
306 B
Python
|
"""Test Prediction Guard API wrapper."""
|
||
|
|
||
|
from langchain.llms.predictionguard import PredictionGuard
|
||
|
|
||
|
|
||
|
def test_predictionguard_call() -> None:
|
||
|
"""Test valid call to prediction guard."""
|
||
|
llm = PredictionGuard(name="default-text-gen")
|
||
|
output = llm("Say foo:")
|
||
|
assert isinstance(output, str)
|