添加了一点日志

This commit is contained in:
minecraft1024a
2025-09-27 14:59:54 +08:00
committed by Windpicker-owo
parent ca70c35b1f
commit 74bbcb8efc
2 changed files with 2 additions and 9 deletions

View File

@@ -46,12 +46,12 @@ class PlanFilter:
try:
prompt, used_message_id_list = await self._build_prompt(plan)
plan.llm_prompt = prompt
logger.debug(f"墨墨在这里加了日志 -> LLM prompt: {prompt}")
logger.info(f"规划器原始提示词: {prompt}")
llm_content, _ = await self.planner_llm.generate_response_async(prompt=prompt)
if llm_content:
logger.debug(f"墨墨在这里加了日志 -> LLM a原始返回: {llm_content}")
logger.info(f"规划器原始返回: {llm_content}")
parsed_json = orjson.loads(repair_json(llm_content))
logger.debug(f"墨墨在这里加了日志 -> 解析后的 JSON: {parsed_json}")