This commit is contained in:
Cai
2025-10-23 12:01:01 +08:00
parent 382f200663
commit 57eb1197a2
4 changed files with 8374 additions and 4037 deletions

View File

@@ -44,6 +44,8 @@ def realtime_response(config: dict, realtime_action: dict) -> None:
bb.pasted_content = realtime_action.get("content")
with open(os.path.join(bb.root_path, bb.active_file_path), "r", encoding="utf-8") as f:
bb.active_file_content = f.read()
# TODO: 让大模型检查当前这个文件和用户paste的代码,基于此判断是否需要打断学生写代码并询问其理解
# chatmanager.ase_client.send("check_code", {"file_path": file_path, "content": bb.pasted_content})
elif rtype == "fileEdit":
file_path = realtime_action.get("filePath")