langchain/tests/integration_tests/llms/test_aviary.py
kourosh hakhamaneshi f6fdabd20b
Fix ray-project/Aviary integration (#6607)
- Description: The aviary integration has changed url link. This PR
provide fix for those changes and also it makes providing the input URL
optional to the API (since they can be set via env variables).
  - Issue: N/A
  - Dependencies: N/A
  - Twitter handle: N/A

---------

Signed-off-by: Kourosh Hakhamaneshi <kourosh@anyscale.com>
2023-06-23 14:49:53 -07:00

12 lines
267 B
Python

"""Test Anyscale API wrapper."""
from langchain.llms.aviary import Aviary
def test_aviary_call() -> None:
"""Test valid call to Anyscale."""
llm = Aviary()
output = llm("Say bar:")
print(f"llm answer:\n{output}")
assert isinstance(output, str)