diff --git a/ai_planner.py b/ai_planner.py index 5c9dbe2..c7a9b9f 100644 --- a/ai_planner.py +++ b/ai_planner.py @@ -334,6 +334,9 @@ class AIPlanner: t_json0 = time.perf_counter() data = json.loads(raw_text) + if _glm_debug_enabled(): + finish_reason = data.get("choices", [{}])[0].get("finish_reason") + print(f"[GLM][디버그] finish_reason={finish_reason!r}") content = self._extract_glm_assistant_text(data).strip() if not content and _glm_debug_enabled(): # content가 비어있으면 아래 파서에서 원인 추적이 어려워지므로 raw 일부를 남긴다.