Change gen_mindmap to async function call
This commit is contained in:
parent
d1e7029964
commit
1b3f17605a
1 changed files with 1 additions and 1 deletions
|
|
@ -435,7 +435,7 @@ async def mindmap():
|
|||
kb_ids.extend(req["kb_ids"])
|
||||
kb_ids = list(set(kb_ids))
|
||||
|
||||
mind_map = gen_mindmap(req["question"], kb_ids, search_app.get("tenant_id", current_user.id), search_config)
|
||||
mind_map = await gen_mindmap(req["question"], kb_ids, search_app.get("tenant_id", current_user.id), search_config)
|
||||
if "error" in mind_map:
|
||||
return server_error_response(Exception(mind_map["error"]))
|
||||
return get_json_result(data=mind_map)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue