[Test] Make Anthropic messages test compatible with SDK 1.x via extra_body (#57780)

Signed-off-by: jiangyunfan1 <jiangyunfan1@h-partners.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

jiangyunfan1 committed Oct 1, 2026 at 15:38 UTC e12b7351099e23414de79cededdd3854633e986f
1 file changed +1 -1
tests/entrypoints/anthropic/test_messages.py
+1 -1
@@ -224,7 +224,7 @@ async def test_anthropic_streaming_cache_usage(client: anthropic.AsyncAnthropic)
224 request = dict(
225 model="claude-3-7-sonnet-latest",
226 max_tokens=1,
227 - temperature=0.0,
227 + extra_body={"temperature": 0.0},
228 messages=[
229 {
230 "role": "user",