semblance-dev/backend/app/services
michael 94f98b837b Add event loop tracking to LLM client getters
The previous lazy initialization fix wasn't sufficient - the genai.Client
internally caches async structures bound to the event loop at creation time.
With ASGI servers like Hypercorn, subsequent requests may come on different
event loop contexts, causing "Future attached to a different loop" errors.

Now tracks which event loop the client was created on and recreates it if
the loop has changed.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 16:46:35 -06:00
..
ai_moderator_service.py changed permissions 2025-12-19 19:26:16 +00:00
ai_persona_service.py changed permissions 2025-12-19 19:26:16 +00:00
ai_runner_service.py changed permissions 2025-12-19 19:26:16 +00:00
autonomous_conversation_controller.py changed permissions 2025-12-19 19:26:16 +00:00
bulk_persona_export_service.py changed permissions 2025-12-19 19:26:16 +00:00
conversation_context_service.py changed permissions 2025-12-19 19:26:16 +00:00
conversation_decision_service.py changed permissions 2025-12-19 19:26:16 +00:00
conversation_state_manager.py changed permissions 2025-12-19 19:26:16 +00:00
customer_data_service.py changed permissions 2025-12-19 19:26:16 +00:00
focus_group_response_service.py changed permissions 2025-12-19 19:26:16 +00:00
focus_group_service.py changed permissions 2025-12-19 19:26:16 +00:00
focus_group_summary_service.py changed permissions 2025-12-19 19:26:16 +00:00
image_description_service.py changed permissions 2025-12-19 19:26:16 +00:00
key_theme_service.py changed permissions 2025-12-19 19:26:16 +00:00
llm_service.py Add event loop tracking to LLM client getters 2025-12-19 16:46:35 -06:00
msal_service.py changed permissions 2025-12-19 19:26:16 +00:00
persona_export_service.py changed permissions 2025-12-19 19:26:16 +00:00
persona_modification_service.py changed permissions 2025-12-19 19:26:16 +00:00
task_manager.py changed permissions 2025-12-19 19:26:16 +00:00