fix: 修复 HTTPException 参数名拼写错误
这个提交包含在:
@ -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)
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户