This commit is contained in:
yashdhumane 2026-10-26 12:20:01 -04:00 • committed by GitHub
commit 0e9031f690
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,