asyncio.wait_for cannot reliably cancel SDK-internal HTTP connections.
Replace with two genai.Client instances — one per model — each configured
with http_options={'timeout': N} so the TCP connection is actually torn
down when the deadline is reached.
Primary model: 45s, Fallback model: 150s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| analysis_service.py | ||
| auth_service.py | ||
| email_service.py | ||
| gemini_service.py | ||
| knowledge_base_service.py | ||
| llamaparse_service.py | ||
| pdf_service.py | ||
| reference_docs.py | ||
| storage_service.py | ||