Spaces:
Running
Running
axeronis commited on
Commit ·
191d518
1
Parent(s): 27fa486
fix: use get_ai_core().llm for voice analysis in webhook
Browse files1304 unmodified lines1305130613071308130913101311131213131304 unmodified lines# 2. SMART LLM ANALYSIS for critical momentselse:try:from app.services.ai_core.llm import llmvoice_analysis = await llm.generate_response(prompt=f"""Is this a CRITICAL MOMENT that requires a personal voice message to build trust?User's message: "{user_text}"1304 unmodified lines13051306130713081309131013111312131313141304 unmodified lines# 2. SMART LLM ANALYSIS for critical momentselse:try:from app.services.ai_core import get_ai_coreai_core = get_ai_core()voice_analysis = await ai_core.llm.generate_response(prompt=f"""Is this a CRITICAL MOMENT that requires a personal voice message to build trust?User's message: "{user_text}"
backend/app/api/webhook.py+3-2