v1.3 W4/W5:讲清失败记卡点(read/plan/calc/check) + 语音讲一遍(录音落盘+三项自评,256 测试)

This commit is contained in:
2026-11-24 10:02:23 +08:00
parent 53699b4e42
commit 5fcbe086fd
13 changed files with 433 additions and 8 deletions
+11 -1
View File
@@ -409,7 +409,17 @@ def get_similar(ctx: Ctx, mid: str, **kw):
def post_explain(ctx: Ctx, mid: str, **kw):
return svc.explain(ctx.conn, ctx.gid, _child_id(ctx), mid,
str(ctx.body.get("channel") or "ai_voice"),
str(ctx.body.get("text") or ""))
str(ctx.body.get("text") or ""),
checks=ctx.body.get("checks") or None,
audio_b64=ctx.body.get("audio_b64") or None,
audio_ext=ctx.body.get("audio_ext") or None)
@route("POST", r"/api/mistakes/(?P<mid>[^/]+)/stuck", auth="child_ok")
def post_stuck(ctx: Ctx, mid: str, **kw):
"""讲清失败后记「卡在哪」:read / plan / calc / check。"""
return svc.set_stuck_at(ctx.conn, ctx.gid, _child_id(ctx), mid,
ctx.body.get("stuck_at"))
@route("GET", r"/api/kp-graph/(?P<kp>[^/]+)", auth="none")