mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-08 14:31:55 +00:00
Add Writer, Banana, Modal, StochasticAI (#1270)
Add LLM wrappers and examples for Banana, Writer, Modal, Stochastic AI Added rigid json format for Banana and Modal
This commit is contained in:
10
tests/integration_tests/llms/test_banana.py
Normal file
10
tests/integration_tests/llms/test_banana.py
Normal file
@@ -0,0 +1,10 @@
|
||||
"""Test BananaDev API wrapper."""
|
||||
|
||||
from langchain.llms.bananadev import Banana
|
||||
|
||||
|
||||
def test_banana_call() -> None:
|
||||
"""Test valid call to BananaDev."""
|
||||
llm = Banana()
|
||||
output = llm("Say foo:")
|
||||
assert isinstance(output, str)
|
10
tests/integration_tests/llms/test_modal.py
Normal file
10
tests/integration_tests/llms/test_modal.py
Normal file
@@ -0,0 +1,10 @@
|
||||
"""Test Modal API wrapper."""
|
||||
|
||||
from langchain.llms.modal import Modal
|
||||
|
||||
|
||||
def test_modal_call() -> None:
|
||||
"""Test valid call to Modal."""
|
||||
llm = Modal()
|
||||
output = llm("Say foo:")
|
||||
assert isinstance(output, str)
|
10
tests/integration_tests/llms/test_stochasticai.py
Normal file
10
tests/integration_tests/llms/test_stochasticai.py
Normal file
@@ -0,0 +1,10 @@
|
||||
"""Test StochasticAI API wrapper."""
|
||||
|
||||
from langchain.llms.stochasticai import StochasticAI
|
||||
|
||||
|
||||
def test_stochasticai_call() -> None:
|
||||
"""Test valid call to StochasticAI."""
|
||||
llm = StochasticAI()
|
||||
output = llm("Say foo:")
|
||||
assert isinstance(output, str)
|
10
tests/integration_tests/llms/test_writer.py
Normal file
10
tests/integration_tests/llms/test_writer.py
Normal file
@@ -0,0 +1,10 @@
|
||||
"""Test Writer API wrapper."""
|
||||
|
||||
from langchain.llms.writer import Writer
|
||||
|
||||
|
||||
def test_writer_call() -> None:
|
||||
"""Test valid call to Writer."""
|
||||
llm = Writer()
|
||||
output = llm("Say foo:")
|
||||
assert isinstance(output, str)
|
Reference in New Issue
Block a user