[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>
This commit is contained in:
jiangyunfan1
2026-10-01 07:38:29 +00:00
committed by GitHub
co-authored by mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent e12291d733
commit e12b735109
+1 -1
View File
@@ -224,7 +224,7 @@ async def test_anthropic_streaming_cache_usage(client: anthropic.AsyncAnthropic)
request = dict(
model="claude-3-7-sonnet-latest",
max_tokens=1,
temperature=0.0,
extra_body={"temperature": 0.0},
messages=[
{
"role": "user",