Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
546d4426
Commit
546d4426
authored
Aug 02, 2024
by
Timothy J. Baek
Browse files
refac
parent
ed8c0b23
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
backend/main.py
backend/main.py
+1
-3
No files found.
backend/main.py
View file @
546d4426
...
@@ -1285,9 +1285,7 @@ async def chat_completed(form_data: dict, user=Depends(get_verified_user)):
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment