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
d7dd901f
"docs/source/vscode:/vscode.git/clone" did not exist on "181688012a2abadc93b316d91a513bee36193615"
Commit
d7dd901f
authored
Jul 09, 2024
by
Michael Poluektov
Browse files
refac: remove nesting
parent
e3e02e04
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
81 additions
and
78 deletions
+81
-78
backend/main.py
backend/main.py
+81
-78
No files found.
backend/main.py
View file @
d7dd901f
...
@@ -465,8 +465,10 @@ async def chat_completion_functions_handler(
...
@@ -465,8 +465,10 @@ async def chat_completion_functions_handler(
**
(
valves
if
valves
else
{})
**
(
valves
if
valves
else
{})
)
)
if
not
hasattr
(
function_module
,
"inlet"
):
continue
try
:
try
:
if
hasattr
(
function_module
,
"inlet"
):
inlet
=
function_module
.
inlet
inlet
=
function_module
.
inlet
# Get the signature of the function
# Get the signature of the function
...
@@ -1184,8 +1186,9 @@ async def chat_completed(form_data: dict, user=Depends(get_verified_user)):
...
@@ -1184,8 +1186,9 @@ async def chat_completed(form_data: dict, user=Depends(get_verified_user)):
**
(
valves
if
valves
else
{})
**
(
valves
if
valves
else
{})
)
)
if
not
hasattr
(
function_module
,
"outlet"
):
continue
try
:
try
:
if
hasattr
(
function_module
,
"outlet"
):
outlet
=
function_module
.
outlet
outlet
=
function_module
.
outlet
# Get the signature of the function
# Get the signature of the function
...
...
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