mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-19 05:13:46 +00:00
anthropic[patch]: remove retired model from tests (#27965)
`claude-instant` was [retired yesterday](https://docs.anthropic.com/en/docs/resources/model-deprecations).
This commit is contained in:
parent
2cb39270ec
commit
a747dbd24b
@ -24,14 +24,14 @@ def test_anthropic_model_param() -> None:
|
|||||||
|
|
||||||
def test_anthropic_call() -> None:
|
def test_anthropic_call() -> None:
|
||||||
"""Test valid call to anthropic."""
|
"""Test valid call to anthropic."""
|
||||||
llm = Anthropic(model="claude-instant-1") # type: ignore[call-arg]
|
llm = Anthropic(model="claude-2.1") # type: ignore[call-arg]
|
||||||
output = llm.invoke("Say foo:")
|
output = llm.invoke("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="claude-instant-1") # type: ignore[call-arg]
|
llm = Anthropic(model="claude-2.1") # type: ignore[call-arg]
|
||||||
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