add integration with manifest (#62)

This commit is contained in:
Harrison Chase
2022-11-10 11:24:11 -08:00
committed by GitHub
parent 5e76c12455
commit e43534d41c
5 changed files with 191 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
"""Test manifest integration."""
from langchain.llms.manifest import ManifestWrapper
def test_manifest_wrapper() -> None:
"""Test manifest wrapper."""
from manifest import Manifest
manifest = Manifest(
client_name="openai",
)
llm = ManifestWrapper(client=manifest, llm_kwargs={"temperature": 0})
output = llm("The capital of New York is:")
assert output == "Albany"