mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-17 23:41:46 +00:00
Harrison/prediction guard (#3490)
Co-authored-by: Daniel Whitenack <whitenack.daniel@gmail.com>
This commit is contained in:
10
tests/integration_tests/llms/test_predictionguard.py
Normal file
10
tests/integration_tests/llms/test_predictionguard.py
Normal file
@@ -0,0 +1,10 @@
|
||||
"""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)
|
Reference in New Issue
Block a user