mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-01 19:12:42 +00:00
add integration with manifest (#62)
This commit is contained in:
14
tests/integration_tests/llms/test_manifest.py
Normal file
14
tests/integration_tests/llms/test_manifest.py
Normal 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"
|
Reference in New Issue
Block a user