mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-22 14:49:29 +00:00
Move from test to supported claude-instant-1 model (#9066)
Moves from "test" model to "claude-instant-1" model which is supported and has actual capacity
This commit is contained in:
parent
b7bc8ec87f
commit
e94a5d753f
@ -11,14 +11,14 @@ from tests.unit_tests.callbacks.fake_callback_handler import FakeCallbackHandler
|
|||||||
|
|
||||||
def test_anthropic_call() -> None:
|
def test_anthropic_call() -> None:
|
||||||
"""Test valid call to anthropic."""
|
"""Test valid call to anthropic."""
|
||||||
llm = Anthropic(model="test")
|
llm = Anthropic(model="claude-instant-1")
|
||||||
output = llm("Say foo:")
|
output = llm("Say foo:")
|
||||||
assert isinstance(output, str)
|
assert isinstance(output, str)
|
||||||
|
|
||||||
|
|
||||||
def test_anthropic_streaming() -> None:
|
def test_anthropic_streaming() -> None:
|
||||||
"""Test streaming tokens from anthropic."""
|
"""Test streaming tokens from anthropic."""
|
||||||
llm = Anthropic(model="test")
|
llm = Anthropic(model="claude-instant-1")
|
||||||
generator = llm.stream("I'm Pickle Rick")
|
generator = llm.stream("I'm Pickle Rick")
|
||||||
|
|
||||||
assert isinstance(generator, Generator)
|
assert isinstance(generator, Generator)
|
||||||
|
Loading…
Reference in New Issue
Block a user