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
f5242389
Commit
f5242389
authored
Jun 22, 2024
by
Timothy J. Baek
Browse files
fix
parent
646832ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
backend/main.py
backend/main.py
+3
-3
No files found.
backend/main.py
View file @
f5242389
...
@@ -876,11 +876,11 @@ async def generate_chat_completions(form_data: dict, user=Depends(get_verified_u
...
@@ -876,11 +876,11 @@ async def generate_chat_completions(form_data: dict, user=Depends(get_verified_u
print
(
pipe_id
)
print
(
pipe_id
)
# Check if function is already loaded
# Check if function is already loaded
if
pipe_id
not
in
app
.
state
.
FUNCTIONS
:
if
pipe_id
not
in
webui_
app
.
state
.
FUNCTIONS
:
function_module
,
function_type
=
load_function_module_by_id
(
pipe_id
)
function_module
,
function_type
=
load_function_module_by_id
(
pipe_id
)
app
.
state
.
FUNCTIONS
[
pipe_id
]
=
function_module
webui_
app
.
state
.
FUNCTIONS
[
pipe_id
]
=
function_module
else
:
else
:
function_module
=
app
.
state
.
FUNCTIONS
[
pipe_id
]
function_module
=
webui_
app
.
state
.
FUNCTIONS
[
pipe_id
]
pipe
=
function_module
.
pipe
pipe
=
function_module
.
pipe
...
...
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