mirror of
https://github.com/open-webui/open-webui
synced 2025-02-16 18:22:29 +00:00
refac
This commit is contained in:
parent
ed8c0b23a0
commit
546d442626
@ -1285,9 +1285,7 @@ async def chat_completed(form_data: dict, user=Depends(get_verified_user)):
|
|||||||
|
|
||||||
|
|
||||||
@app.post("/api/chat/actions/{action_id}")
|
@app.post("/api/chat/actions/{action_id}")
|
||||||
async def chat_completed(
|
async def chat_action(action_id: str, form_data: dict, user=Depends(get_verified_user)):
|
||||||
action_id: str, form_data: dict, user=Depends(get_verified_user)
|
|
||||||
):
|
|
||||||
if "." in action_id:
|
if "." in action_id:
|
||||||
action_id, sub_action_id = action_id.split(".")
|
action_id, sub_action_id = action_id.split(".")
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user