mirror of
https://github.com/hwchase17/langchain
synced 2024-11-10 01:10:59 +00:00
25fbe356b4
This PR upgrades community to a recent version of mypy. It inserts type: ignore on all existing failures.
14 lines
429 B
Python
14 lines
429 B
Python
"""Test Baseten API wrapper."""
|
|
import os
|
|
|
|
from langchain_community.llms.baseten import Baseten
|
|
|
|
# This test requires valid BASETEN_MODEL_ID and BASETEN_API_KEY environment variables
|
|
|
|
|
|
def test_baseten_call() -> None:
|
|
"""Test valid call to Baseten."""
|
|
llm = Baseten(model=os.environ["BASETEN_MODEL_ID"]) # type: ignore[call-arg]
|
|
output = llm.invoke("Test prompt, please respond.")
|
|
assert isinstance(output, str)
|