JatsTheAIGen commited on
Commit
e7bf096
·
1 Parent(s): 55f436b

workflow errors debugging v8

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -415,10 +415,10 @@ async def process_message_async(message: str, history: Optional[List], session_i
415
  response = f"I'm experiencing some technical difficulties. Your message was: '{message[:100]}...' Please try again or rephrase your question."
416
  reasoning_data = {"error": str(orch_error)}
417
  else:
418
- # Fallback placeholder - always informative
419
- logger.info("Using placeholder response (orchestrator unavailable)")
420
- response = f"Hello! I received your message: '{message}'.\n\nThe full AI orchestration system is {'available but not loaded' if orchestrator_available else 'not available'}."
421
- reasoning_data = {"status": "orchestrator_unavailable"}
422
 
423
  # Add assistant response
424
  new_history.append({"role": "assistant", "content": response})
 
415
  response = f"I'm experiencing some technical difficulties. Your message was: '{message[:100]}...' Please try again or rephrase your question."
416
  reasoning_data = {"error": str(orch_error)}
417
  else:
418
+ # System initialization message
419
+ logger.info("Orchestrator not yet available")
420
+ response = f"Hello! I received your message about: '{message}'.\n\nThe orchestration system is initializing. Your question is important and I'll provide a comprehensive answer shortly."
421
+ reasoning_data = {"status": "initializing"}
422
 
423
  # Add assistant response
424
  new_history.append({"role": "assistant", "content": response})