mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-09 04:50:37 +00:00
Update to OpenLLM 0.6, which we decides to make use of OpenLLM's OpenAI-compatible endpoint. Thus, OpenLLM will now just become a thin wrapper around OpenAI wrapper. Signed-off-by: Aaron Pham <contact@aarnphm.xyz> --------- Signed-off-by: Aaron Pham <contact@aarnphm.xyz> Co-authored-by: ccurme <chester.curme@gmail.com>
14 lines
297 B
Python
14 lines
297 B
Python
"""Test OpenLLM API wrapper."""
|
|
|
|
import pytest
|
|
|
|
from langchain_community.llms.openllm import OpenLLM
|
|
|
|
|
|
@pytest.mark.scheduled
|
|
def test_openai_call() -> None:
|
|
"""Test valid call to openai."""
|
|
llm = OpenLLM()
|
|
output = llm.invoke("Say something nice:")
|
|
assert isinstance(output, str)
|