Spaces:
Sleeping
Sleeping
Commit ยท
95a417d
1
Parent(s): 2e45e3f
fix: Remove JSON result from assistant_response in /chat/unified - cleaner UI response
Browse files- 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 |
-
#
|
| 1119 |
result_text = _extract_user_facing_text(result)
|
| 1120 |
-
friendly = f"๐ Pipeline completed successfully
|
| 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,
|