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]

test: ensure aws region correctly set

Krrish Dholakia2fe0a2750bc2
diff --git a/tests/logging_callback_tests/test_bedrock_knowledgebase_hook.py b/tests/logging_callback_tests/test_bedrock_knowledgebase_hook.py
index 96efbea7adc..a8afe9ebbaa 100644
--- a/tests/logging_callback_tests/test_bedrock_knowledgebase_hook.py
+++ b/tests/logging_callback_tests/test_bedrock_knowledgebase_hook.py
@@ -34,6 +34,10 @@ class TestCustomLogger(CustomLogger):
self.standard_logging_payload = kwargs.get("standard_logging_object")
pass
[email protected](autouse=True)
+def add_aws_region_to_env(monkeypatch):
+ monkeypatch.setenv("AWS_REGION", "us-west-2")
+
@pytest.fixture
def setup_vector_store_registry():