mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-26 02:13:29 +08:00
Go: add context (#17314)
### Summary As title. --------- Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@@ -202,7 +202,8 @@ func (h *ChatHandler) MindMap(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
mindMap, err := runMindMap(mindMapRunConfig{
|
||||
ctx := c.Request.Context()
|
||||
mindMap, err := runMindMap(ctx, mindMapRunConfig{
|
||||
Question: req.Question,
|
||||
KbIDs: kbIDs,
|
||||
SearchID: req.SearchID,
|
||||
|
||||
Reference in New Issue
Block a user