From 67a4893b9913f61b28e7261ba5c180b89137bcbb Mon Sep 17 00:00:00 2001 From: philipph-askui Date: Fri, 28 Aug 2026 16:26:02 -0400 Subject: [PATCH] fix(deps): cap anthropic to <1 to prevent temperature-kwarg crash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit anthropic 1.x removed the `temperature` parameter from `beta.messages.create`, but the SDK still passes it (as the `omit` sentinel) on every model call. Any install that resolves anthropic >=1.0 therefore crashes with `TypeError: got an unexpected keyword argument 'temperature'` on the first model request — regardless of whether the user ever sets a temperature. Cap the dependency (and the bedrock/vertex extras) to `<1` as an immediate stopgap so installs stop pulling the incompatible client. The lock stays on the known-good 0.116.0. A follow-up makes the code compatible with anthropic 1.x so this cap can later be relaxed. Co-Authored-By: Claude Opus 4.8 (1M context) --- pdm.lock | 2 +- pyproject.toml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pdm.lock b/pdm.lock index c9c0845b..58693a3c 100644 --- a/pdm.lock +++ b/pdm.lock @@ -5,7 +5,7 @@ groups = ["default", "all", "bedrock", "dev", "office-document", "otel", "vertex", "web"] strategy = ["inherit_metadata"] lock_version = "4.5.0" -content_hash = "sha256:156da503bb3b6d055b873aca6b997b6e62cb1b42bf9ccb17ade899bb0d8c6052" +content_hash = "sha256:45cd1d1a4c6c7b2a02b08ccd9938cdd7fa6637f509e498ff80e0e887da89111a" [[metadata.targets]] requires_python = ">=3.10,<3.14" diff --git a/pyproject.toml b/pyproject.toml index aa9f17d2..981796fd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ authors = [ ] dependencies = [ "askui-agent-os>=26.6.1", - "anthropic>=0.86.0", + "anthropic>=0.86.0,<1", # <1: 1.x dropped the `temperature` kwarg the SDK still sends, crashing every model call "fastapi>=0.115.12", "fastmcp>=2.3.0", "gradio-client>=1.4.3", @@ -213,7 +213,7 @@ office-document = [ "markitdown[xls,xlsx,docx]>=0.1.2" ] bedrock = [ - "anthropic[bedrock]>=0.72.0" + "anthropic[bedrock]>=0.72.0,<1" ] otel = [ "opentelemetry-api>=1.38.0", @@ -222,7 +222,7 @@ otel = [ ] vertex = [ "google-cloud-aiplatform>=1.122.0", - "anthropic[vertex]>=0.72.0", + "anthropic[vertex]>=0.72.0,<1", ] web = [ "playwright>=1.41.0",