[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:
co-authored by
mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent
e12291d733
commit
e12b735109
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user