You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/community/tests/integration_tests/llms/test_watsonxllm.py

15 lines
381 B
Python

"""Test WatsonxLLM API wrapper."""
from langchain_community.llms import WatsonxLLM
def test_watsonxllm_call() -> None:
watsonxllm = WatsonxLLM(
model_id="google/flan-ul2",
url="https://us-south.ml.cloud.ibm.com",
apikey="***",
project_id="***",
)
response = watsonxllm("What color sunflower is?")
assert isinstance(response, str)