Skip to content

Commit

Permalink
Merge branch 'main' into nqn/session-bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nqn committed May 23, 2024
2 parents 26f7880 + ebf8334 commit 6d0de17
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_langchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ def test_chat_anthropic_messages(anthropic_legacy_model):
messages = [SystemMessage(content="You are a ping pong machine"), HumanMessage(content="Ping?")]
completion = llm.predict_messages(messages)

assert isinstance(completion.content, str)
assert "pong" in completion.content.lower()
content = completion.content
assert isinstance(content, str)
assert content, "No output from the model."

0 comments on commit 6d0de17

Please sign in to comment.