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(responses): bound azure shell tool live call at 90s and skip on provider timeout (#32424)

Mateo Wang06a43d11c481
diff --git a/tests/llm_responses_api_testing/base_responses_api.py b/tests/llm_responses_api_testing/base_responses_api.py
index 30f444b9acc..7d2e30f8372 100644
--- a/tests/llm_responses_api_testing/base_responses_api.py
+++ b/tests/llm_responses_api_testing/base_responses_api.py
@@ -765,7 +765,10 @@ class BaseResponsesAPITest(ABC):
max_output_tokens=256,
tools=tools,
tool_choice="auto",
+ timeout=90,
)
+ except litellm.Timeout:
+ pytest.skip("Provider did not answer the shell tool request within 90s")
except litellm.InternalServerError:
pytest.skip("Skipping test due to litellm.InternalServerError")
except litellm.BadRequestError as e: