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_aresponses_service_tier_and_safety_identifier
Ishaan Jaffer4a83ae0695ac
diff --git a/tests/llm_responses_api_testing/test_openai_responses_api.py b/tests/llm_responses_api_testing/test_openai_responses_api.pyindex 24a0321d0c7..f93720620b1 100644--- a/tests/llm_responses_api_testing/test_openai_responses_api.py+++ b/tests/llm_responses_api_testing/test_openai_responses_api.py@@ -636,6 +636,7 @@ async def test_openai_responses_litellm_router_no_metadata():self._json_data = json_dataself.status_code = status_codeself.text = str(json_data)+ self.headers = httpx.Headers({})def json(self): # Changed from async to syncreturn self._json_data@@ -733,6 +734,7 @@ async def test_openai_responses_litellm_router_with_metadata():self._json_data = json_dataself.status_code = status_codeself.text = str(json_data)+ self.headers = httpx.Headers({})def json(self):return self._json_data@@ -815,6 +817,7 @@ async def test_openai_responses_litellm_router_with_prompt():self._json_data = json_dataself.status_code = status_codeself.text = str(json_data)+ self.headers = httpx.Headers({})def json(self):return self._json_data@@ -931,6 +934,7 @@ async def test_openai_o1_pro_response_api(sync_mode):self._json_data = json_dataself.status_code = status_codeself.text = json.dumps(json_data)+ self.headers = httpx.Headers({})def json(self): # Changed from async to syncreturn self._json_data@@ -1027,6 +1031,7 @@ async def test_openai_o1_pro_response_api_streaming(sync_mode):self._json_data = json_dataself.status_code = status_codeself.text = json.dumps(json_data)+ self.headers = httpx.Headers({})def json(self):return self._json_data@@ -1147,6 +1152,7 @@ def test_basic_computer_use_preview_tool_call():self._json_data = json_dataself.status_code = status_codeself.text = json.dumps(json_data)+ self.headers = httpx.Headers({})def json(self):return self._json_data@@ -1451,6 +1457,7 @@ async def test_aresponses_service_tier_and_safety_identifier():self._json_data = json_dataself.status_code = status_codeself.text = json.dumps(json_data)+ self.headers = httpx.Headers({})def json(self):return self._json_data@@ -1547,6 +1554,7 @@ async def test_openai_gpt5_reasoning_effort_parameter():self._json_data = json_dataself.status_code = status_codeself.text = json.dumps(json_data)+ self.headers = httpx.Headers({})def json(self):return self._json_data