This commit is contained in:
yashdhumane 2026-10-25 08:14:27 +00:00 • committed by GitHub
commit ca6208c253
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6054,7 +6054,7 @@ def completion(
custom_llm_provider=custom_llm_provider,
model_id=optional_params.get("model_id"),
)
if mock_response or mock_tool_calls or mock_timeout:
if mock_response is not None or mock_tool_calls or mock_timeout:
kwargs.pop("mock_timeout", None) # remove for any fallbacks triggered
return mock_completion(
model,