Skip to content

Commit

Permalink
Merge branch 'nqn/session-bug' of github.com:log10-io/log10 into nqn/…
Browse files Browse the repository at this point in the history
…session-bug
  • Loading branch information
nqn committed May 23, 2024
2 parents c8336d6 + 6d0de17 commit c02f954
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 c02f954

Please sign in to comment.