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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
test(bedrock): drop the leftover set_verbose from the embedding tests (#37844)
yuneng-jiangb9bff0998c9c
diff --git a/test-quality-budget.json b/test-quality-budget.jsonindex 1263ed82a65..5039143eaa0 100644--- a/test-quality-budget.json+++ b/test-quality-budget.json@@ -12,7 +12,7 @@"limit": 469},"TQ005": {- "limit": 2474+ "limit": 2459},"TQ006": {"limit": 34diff --git a/tests/test_litellm/llms/bedrock/embed/test_bedrock_embedding.py b/tests/test_litellm/llms/bedrock/embed/test_bedrock_embedding.pyindex 9955851132c..e35365cd609 100644--- a/tests/test_litellm/llms/bedrock/embed/test_bedrock_embedding.py+++ b/tests/test_litellm/llms/bedrock/embed/test_bedrock_embedding.py@@ -50,7 +50,6 @@ test_image_base64 = "data:image/png,test_image_base64_data")def test_bedrock_embedding_with_api_key_bearer_token(model, input_type, embed_response):"""Test embedding functionality with bearer token authentication"""- litellm.set_verbose = Trueclient = HTTPHandler()test_api_key = "test-bearer-token-12345"@@ -98,7 +97,6 @@ def test_bedrock_embedding_with_env_variable_bearer_token(model, input_type, embed_response):"""Test embedding functionality with bearer token from environment variable"""- litellm.set_verbose = Trueclient = HTTPHandler()test_api_key = "env-bearer-token-12345"@@ -130,7 +128,6 @@ def test_bedrock_embedding_with_env_variable_bearer_token(@pytest.mark.asyncioasync def test_async_bedrock_embedding_with_bearer_token():"""Test async embedding functionality with bearer token authentication"""- litellm.set_verbose = Trueclient = AsyncHTTPHandler()test_api_key = "async-bearer-token-12345"model = "bedrock/amazon.titan-embed-text-v1"@@ -160,7 +157,6 @@ async def test_async_bedrock_embedding_with_bearer_token():def test_bedrock_embedding_with_sigv4():"""Test embedding falls back to SigV4 auth when no bearer token is provided"""- litellm.set_verbose = Truemodel = "bedrock/amazon.titan-embed-text-v1"with patch(@@ -182,7 +178,6 @@ def test_bedrock_embedding_with_sigv4():def test_bedrock_titan_v2_encoding_format_float():"""Test amazon.titan-embed-text-v2:0 with encoding_format=float parameter"""- litellm.set_verbose = Trueclient = HTTPHandler()test_api_key = "test-bearer-token-12345"model = "bedrock/amazon.titan-embed-text-v2:0"@@ -220,7 +215,6 @@ def test_bedrock_titan_v2_encoding_format_float():def test_bedrock_titan_v2_encoding_format_base64():"""Test amazon.titan-embed-text-v2:0 with encoding_format=base64 parameter (maps to binary)"""- litellm.set_verbose = Trueclient = HTTPHandler()test_api_key = "test-bearer-token-12345"model = "bedrock/amazon.titan-embed-text-v2:0"@@ -260,7 +254,6 @@ def test_bedrock_titan_v2_encoding_format_base64():def test_twelvelabs_input_type_parameter_mapping():"""Test that input_type parameter is correctly mapped to inputType for TwelveLabs models"""- litellm.set_verbose = Trueclient = HTTPHandler()test_api_key = "test-bearer-token-12345"model = "bedrock/twelvelabs.marengo-embed-2-7-v1:0"@@ -300,7 +293,6 @@ def test_twelvelabs_input_type_parameter_mapping():def test_twelvelabs_input_type_parameter_mapping_async_invoke():"""Test that input_type parameter is correctly mapped to inputType for TwelveLabs async invoke models"""- litellm.set_verbose = Trueclient = HTTPHandler()test_api_key = "test-bearer-token-12345"model = "bedrock/async_invoke/twelvelabs.marengo-embed-2-7-v1:0"@@ -343,7 +335,6 @@ def test_twelvelabs_input_type_parameter_mapping_async_invoke():def test_twelvelabs_missing_input_type_error():"""Test that missing input_type parameter defaults to 'text' for TwelveLabs models"""- litellm.set_verbose = Trueclient = HTTPHandler()test_api_key = "test-bearer-token-12345"@@ -422,7 +413,6 @@ def test_bedrock_embedding_header_forwarding(model, embed_response):Relevant Issue: https://github.com/BerriAI/litellm/pull/16042"""- litellm.set_verbose = Trueclient = HTTPHandler()test_api_key = "test-bearer-token-12345"@@ -489,7 +479,6 @@ def test_bedrock_embedding_extra_headers_and_headers_merge():This ensures that headers from kwargs (forwarded by proxy) and extra_headers(passed explicitly) are both included in the final headers sent to the provider."""- litellm.set_verbose = Trueclient = HTTPHandler()test_api_key = "test-bearer-token-12345"model = "bedrock/amazon.titan-embed-text-v1"@@ -557,7 +546,6 @@ def test_bedrock_cohere_v4_embedding_response_parsing():Test parsing of Bedrock Cohere v4 embedding response which returns a dictionary of embeddingskeyed by type (e.g. 'float', 'int8') instead of a direct list."""- litellm.set_verbose = Trueclient = HTTPHandler()test_api_key = "test-bearer-token-12345"model = "bedrock/cohere.embed-v4:0"@@ -617,7 +605,6 @@ def test_bedrock_embedding_custom_headers_with_iam_role_and_custom_api_base():Relevant Issue: Custom headers not forwarded with IAM roles + custom api_base"""- litellm.set_verbose = Trueclient = HTTPHandler()# Simulate IAM role credentials with session token@@ -734,7 +721,6 @@ async def test_bedrock_embedding_custom_headers_with_iam_role_and_custom_api_basThis is the async version of the test above, verifying the fix works for bothsync and async embedding calls."""- litellm.set_verbose = Trueclient = AsyncHTTPHandler()# Simulate IAM role credentials with session token@@ -977,7 +963,6 @@ def test_bedrock_cohere_embedding_types_wrapped_as_list(Malformed input request: #/embedding_types: expected type: JSONArray, found: Stringwhen `encoding_format` is passed as a string."""- litellm.set_verbose = Trueclient = HTTPHandler()model = "bedrock/cohere.embed-multilingual-v3"