fix: 修复 HTTPException 参数名拼写错误

这个提交包含在:
2026-04-04 21:13:10 +08:00
父节点 d13ff4e3fe
当前提交 f2469ac0c5

查看文件

@ -98,7 +98,7 @@ class ChatRequest(BaseModel):
@app.post("/api/chat")
async def chat_endpoint(req: ChatRequest):
if req.teacher_type not in AGENTS_CONFIG:
raise HTTPException(status_dir=400, detail="Invalid teacher_type. Choose from 'question', 'grader', 'data_eval'.")
raise HTTPException(status_code=400, detail="Invalid teacher_type. Choose from 'question', 'grader', 'data_eval'.")
system_msg = build_system_message(req.teacher_type)