feat: separate contents, abstract and body evidence
This commit is contained in:
@@ -210,7 +210,7 @@ def prepare(db, conversation: Conversation, kind: str, payload: dict, *, teacher
|
||||
else:
|
||||
raise HTTPException(400, "不支持的操作")
|
||||
expected = _state(db, kind, payload)
|
||||
if kind == "start_batch" and expected["status"] not in ("created", "failed", "partial"):
|
||||
if kind == "start_batch" and expected["status"] not in ("created", "failed", "partial", "review_required"):
|
||||
raise HTTPException(409, "批次不可启动或重试")
|
||||
if kind == "index_retry" and expected["status"] != "failed":
|
||||
raise HTTPException(409, "仅失败任务可重试")
|
||||
|
||||
Reference in New Issue
Block a user