ok
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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})
|
||||
|
||||
## 评分准则
|
||||
- 正确性、完整性、可读性、效率(按需调整权重)
|
||||
|
||||
Reference in New Issue
Block a user