langchain/tests/integration_tests/llms/test_manifest.py

13 lines
390 B
Python
Raw Normal View History

2022-11-10 19:24:11 +00:00
"""Test manifest integration."""
from langchain.llms.manifest import ManifestWrapper
def test_manifest_wrapper() -> None:
"""Test manifest wrapper."""
from manifest import Manifest
2022-11-14 16:55:59 +00:00
manifest = Manifest(client_name="openai")
2022-11-10 19:24:11 +00:00
llm = ManifestWrapper(client=manifest, llm_kwargs={"temperature": 0})
output = llm("The capital of New York is:")
assert output == "Albany"