ganesh-vilje commited on
Commit
95a417d
ยท
1 Parent(s): 2e45e3f

fix: Remove JSON result from assistant_response in /chat/unified - cleaner UI response

Browse files
Files changed (1) hide show
  1. api_routes_v2.py +2 -2
api_routes_v2.py CHANGED
@@ -1115,9 +1115,9 @@ async def chat_unified(
1115
  model_name=proposed.get("_model", "unknown"),
1116
  is_fallback=False
1117
  )
1118
- # CHANGE: include actual user-facing result
1119
  result_text = _extract_user_facing_text(result)
1120
- friendly = f"๐ŸŽ‰ Pipeline completed successfully!\n\n{result_text or 'โœ… All done!'}" # CHANGE
1121
  api_data = {
1122
  "type": "pipeline_completed",
1123
  "result": result,
 
1115
  model_name=proposed.get("_model", "unknown"),
1116
  is_fallback=False
1117
  )
1118
+ # User-facing message (result is in api_response.result, not assistant_response)
1119
  result_text = _extract_user_facing_text(result)
1120
+ friendly = f"๐ŸŽ‰ Pipeline completed successfully!"
1121
  api_data = {
1122
  "type": "pipeline_completed",
1123
  "result": result,