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

12405
Html/.log

File diff suppressed because one or more lines are too long

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")

View File

@@ -391,7 +391,6 @@ def _default_markdowns(lesson_name: str):
"""三份占位 Markdown 文本。可按需调整模板内容。"""
ts = datetime.now().strftime('%Y-%m-%d %H:%M')
lesson_md = f"""# {lesson_name}
> Auto-generated at {ts}
## 阶段一:示例阶段
### 步骤A
@@ -402,7 +401,6 @@ def _default_markdowns(lesson_name: str):
"""
prompt_md = f"""# {lesson_name}
> Prompt for LLM (auto-generated at {ts})
## 阶段一:示例阶段
### 步骤A
@@ -413,7 +411,6 @@ def _default_markdowns(lesson_name: str):
"""
score_prompt_md = f"""# {lesson_name}
> Scoring Prompt for LLM (auto-generated at {ts})
## 评分准则
- 正确性、完整性、可读性、效率(按需调整权重)

View File

@@ -0,0 +1 @@
{"username": "test1020"}