mirror of
https://github.com/hwchase17/langchain
synced 2024-11-06 03:20:49 +00:00
d6fb25c439
Co-authored-by: Daniel Whitenack <whitenack.daniel@gmail.com>
11 lines
314 B
Python
11 lines
314 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(model="OpenAI-text-davinci-003")
|
|
output = llm("Say foo:")
|
|
assert isinstance(output, str)
|