From 66c822435e4a286ee5555bfb7a63caa40a99ddb3 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Sat, 7 Mar 2026 16:41:54 -0800 Subject: [PATCH] fix(ci): image variation openai sdk 2.24.0 compat + swap bedrock nova-premier to nova-pro (#23066) * fix(ci): fix image variation test for openai sdk 2.24.0 and swap nova-premier to nova-pro image_gen_tests: openai==2.24.0 (bumped Feb 25) requires BytesIO objects to have a .name attribute for MIME type detection in multipart uploads. Add .name to the fixture so create_variation works. Also guard with OPENAI_API_KEY skipif. proxy_e2e_anthropic_messages_tests: nova-premier requires provisioned throughput not available via standard on-demand cross-region inference on the CI account. Swap to nova-pro which uses standard inference profiles. * fix: remove skipif, keep only .name fix for openai sdk compat --- tests/image_gen_tests/test_image_variation.py | 1 + .../test_claude_agent_sdk.py | 10 +++++----- .../test_config.yaml | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/tests/image_gen_tests/test_image_variation.py b/tests/image_gen_tests/test_image_variation.py index d4f66603352..4f2d7c2b13d 100644 --- a/tests/image_gen_tests/test_image_variation.py +++ b/tests/image_gen_tests/test_image_variation.py @@ -45,6 +45,7 @@ def image_url(): # Load the image into a file-like object image_file = BytesIO(response.content) + image_file.name = "litellm_logo.png" return image_file diff --git a/tests/proxy_e2e_anthropic_messages_tests/test_claude_agent_sdk.py b/tests/proxy_e2e_anthropic_messages_tests/test_claude_agent_sdk.py index f1f6eb921bb..8e8033d885f 100644 --- a/tests/proxy_e2e_anthropic_messages_tests/test_claude_agent_sdk.py +++ b/tests/proxy_e2e_anthropic_messages_tests/test_claude_agent_sdk.py @@ -4,7 +4,7 @@ E2E tests for Claude Agent SDK with LiteLLM Proxy using Bedrock models. Tests streaming messages across different Bedrock models: - Regular Bedrock Claude Sonnet 4.5 - Bedrock Converse Claude Sonnet 4.5 -- AWS Nova Premier +- AWS Nova Pro """ import os @@ -14,14 +14,14 @@ from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions # Test models from test_config.yaml -# Note: bedrock-converse-claude-sonnet-4.5 removed temporarily as the Bedrock Converse API +# Note: bedrock-converse-claude-sonnet-4.5 removed temporarily as the Bedrock Converse API # for Claude Sonnet 4.5 may not be available in all regions/accounts -# Note: bedrock-nova-premier requires an inference profile for on-demand throughput -# https://docs.aws.amazon.com/bedrock/latest/userguide/inference-profiles.html +# Note: bedrock-nova-premier requires provisioned throughput (not standard cross-region +# inference profile) and is not reliably available in CI accounts. Using nova-pro instead. TEST_MODELS = [ ("bedrock-claude-sonnet-4.5", "Bedrock Invoke API"), ("bedrock-converse-claude-sonnet-4.5", "Bedrock Converse API"), - ("bedrock-nova-premier", "AWS Nova Premier"), + ("bedrock-nova-pro", "AWS Nova Pro"), ] diff --git a/tests/proxy_e2e_anthropic_messages_tests/test_config.yaml b/tests/proxy_e2e_anthropic_messages_tests/test_config.yaml index 72be11468fe..16ee015868b 100644 --- a/tests/proxy_e2e_anthropic_messages_tests/test_config.yaml +++ b/tests/proxy_e2e_anthropic_messages_tests/test_config.yaml @@ -24,9 +24,9 @@ model_list: model: "bedrock/us.anthropic.claude-opus-4-5-20251101-v1:0" aws_region_name: "us-east-1" - - model_name: bedrock-nova-premier + - model_name: bedrock-nova-pro litellm_params: - model: "bedrock/us.amazon.nova-premier-v1:0" + model: "bedrock/us.amazon.nova-pro-v1:0" aws_region_name: "us-east-1" # Converse API models