Skip to content

Commit 402473c

Browse files
committed
Fix tests by upgrading Anthropic client, refs #2
Also refs citations feature in #1
1 parent d1cd80e commit 402473c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ classifiers = [
1010
]
1111
dependencies = [
1212
"llm>=0.19",
13-
"anthropic>=0.39.0",
13+
"anthropic>=0.45.2",
1414
]
1515

1616
[project.urls]

tests/test_claude_3.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test_prompt():
2424
response_dict = dict(response.response_json)
2525
response_dict.pop("id") # differs between requests
2626
assert response_dict == {
27-
"content": [{"text": "1. Pelly\n2. Beaky", "type": "text"}],
27+
"content": [{"citations": None, "text": "1. Pelly\n2. Beaky", "type": "text"}],
2828
"model": "claude-3-opus-20240229",
2929
"role": "assistant",
3030
"stop_reason": "end_turn",
@@ -46,7 +46,7 @@ async def test_async_prompt():
4646
response_dict = dict(response.response_json)
4747
response_dict.pop("id") # differs between requests
4848
assert response_dict == {
49-
"content": [{"text": "1. Pelly\n2. Beaky", "type": "text"}],
49+
"content": [{"citations": None, "text": "1. Pelly\n2. Beaky", "type": "text"}],
5050
"model": "claude-3-opus-20240229",
5151
"role": "assistant",
5252
"stop_reason": "end_turn",

0 commit comments

Comments
 (0)