Skip to content

Commit

Permalink
Add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
scosman committed Sep 9, 2024
1 parent f82a84d commit fbf155f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libs/core/kiln_ai/adapters/test_langchain_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ def test_langchain_adapter_munge_response(tmp_path):
munged = lca._munge_response(response)
assert munged["setup"] == "Why did the cow join a band?"
assert munged["punchline"] == "Because she wanted to be a moo-sician!"

# non mistral format should continue to work
munged = lca._munge_response(response["arguments"])
assert munged["setup"] == "Why did the cow join a band?"
assert munged["punchline"] == "Because she wanted to be a moo-sician!"

0 comments on commit fbf155f

Please sign in to comment.