The genai.Client and AsyncOpenAI clients were being created at module import time, before the Quart/Hypercorn event loop existed. This caused "Future attached to a different loop" errors when async calls were made, resulting in autonomous focus group conversations stopping with "excessive_silence". Changed to lazy initialization - clients are now created on first use within the running event loop context via get_gemini_client() and get_openai_client() helper functions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __pycache__ | ||
| auth | ||
| models | ||
| routes | ||
| services | ||
| utils | ||
| .DS_Store | ||
| __init__.py | ||
| db.py | ||
| extensions.py | ||
| utils.py | ||
| websocket_debug_tap.py | ||
| websocket_manager.py | ||
| websocket_manager_async.py | ||