Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

Fix Claude Agent SDK E2E test for Nova Pro max_tokens limit

yuneng-jiang2a836c710389
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 fbbb6d4114c..0e4849b86e5 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
@@ -49,5 +49,8 @@ model_list:
vertex_ai_project: "pathrise-convert-1606954137718"
vertex_ai_location: "asia-southeast1"
-general_settings:
+litellm_settings:
+ modify_params: true
+
+general_settings:
forward_client_headers_to_llm_api: true
\ No newline at end of file