Increase fallback Gemini timeout from 60s to 150s

Log analysis showed fallback model responses up to 154s under parallel
load. 60s was too aggressive and would cause false timeouts.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Vadym Samoilenko 2026-03-02 12:43:39 +00:00
parent e8c0257ea6
commit a9bd6a2775

View file

@ -13,7 +13,7 @@ logger = logging.getLogger(__name__)
# Timeout (seconds) for each Gemini API call
_PRIMARY_TIMEOUT = 45
_FALLBACK_TIMEOUT = 60
_FALLBACK_TIMEOUT = 150
class GeminiService: