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_bittensor.py

11 lines
330 B
Python

"""Test Bittensor Validator Endpoint wrapper."""
from langchain_community.llms import NIBittensorLLM
def test_bittensor_call() -> None:
"""Test valid call to validator endpoint."""
llm = NIBittensorLLM(system_prompt="Your task is to answer user prompt.")
output = llm("Say foo:")
assert isinstance(output, str)