Skip to content

Commit a6d392e

Browse files
build(deps): require anthropic>=1,<2
This PR makes the messages API work with the 1.x anthropic client (routes `temperature` through `extra_body` instead of the typed kwarg that 1.x removed), and the lock already resolves 1.2.0. Bump the dependency floor to `>=1` so the declared constraint matches what the code targets, and cap at `<2` so the next major can't silently break us the way 1.x did. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 81f29d6 commit a6d392e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎pdm.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pyproject.toml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ authors = [
66
]
77
dependencies = [
88
"askui-agent-os>=26.6.1",
9-
"anthropic>=0.86.0",
9+
"anthropic>=1,<2", # messages API targets the 1.x client (routes temperature via extra_body; 1.x removed the typed kwarg). <2 so the next major can't silently break us again
1010
"fastapi>=0.115.12",
1111
"fastmcp>=2.3.0",
1212
"gradio-client>=1.4.3",
@@ -213,7 +213,7 @@ office-document = [
213213
"markitdown[xls,xlsx,docx]>=0.1.2"
214214
]
215215
bedrock = [
216-
"anthropic[bedrock]>=0.72.0"
216+
"anthropic[bedrock]>=1,<2"
217217
]
218218
otel = [
219219
"opentelemetry-api>=1.38.0",
@@ -222,7 +222,7 @@ otel = [
222222
]
223223
vertex = [
224224
"google-cloud-aiplatform>=1.122.0",
225-
"anthropic[vertex]>=0.72.0",
225+
"anthropic[vertex]>=1,<2",
226226
]
227227
web = [
228228
"playwright>=1.41.0",

0 commit comments

Comments
 (0)