From 03434b33d138ec115353f75b469bff72094527e7 Mon Sep 17 00:00:00 2001 From: Ling-Sen Peng Date: Mon, 24 Aug 2026 12:00:05 -0700 Subject: [PATCH] Fix e2e LLM-judge call for anthropic SDK 1.x anthropic 1.0.0 removed temperature from messages.create(), so test_llm_judge_validates_compiled_workflow failed with a TypeError. Pass it through extra_body per the SDK migration guide. --- e2e/test_suite1_basic_validation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e/test_suite1_basic_validation.py b/e2e/test_suite1_basic_validation.py index 5cd90ddc..81448d64 100644 --- a/e2e/test_suite1_basic_validation.py +++ b/e2e/test_suite1_basic_validation.py @@ -365,7 +365,7 @@ def _judge_call_anthropic(model: str, system: str, user: str) -> str: max_tokens=1024, system=system, messages=[{"role": "user", "content": user}], - temperature=0, + extra_body={"temperature": 0}, ) return response.content[0].text.strip()