Spaces:
Sleeping
Sleeping
Commit ·
0e76951
1
Parent(s): 1eb4ba5
fix : latest version name
Browse files- services/linebot.py +2 -2
services/linebot.py
CHANGED
|
@@ -145,9 +145,9 @@ def handle_message(event):
|
|
| 145 |
out_str = response["output"]
|
| 146 |
print(f"out_str:{out_str}")
|
| 147 |
tool_result = out_str.get("tool_result", {})
|
| 148 |
-
print(f"
|
| 149 |
final_response = out_str.get("final_response")
|
| 150 |
-
print(f"
|
| 151 |
|
| 152 |
if "error" in tool_result:
|
| 153 |
# 3A. 處理錯誤情況 (例如:圖片下載失敗、API 錯誤)
|
|
|
|
| 145 |
out_str = response["output"]
|
| 146 |
print(f"out_str:{out_str}")
|
| 147 |
tool_result = out_str.get("tool_result", {})
|
| 148 |
+
print(f"tool_result:{tool_result}")
|
| 149 |
final_response = out_str.get("final_response")
|
| 150 |
+
print(f"final_response:{final_response}")
|
| 151 |
|
| 152 |
if "error" in tool_result:
|
| 153 |
# 3A. 處理錯誤情況 (例如:圖片下載失敗、API 錯誤)
|