"git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "16e72b2f670a39f2fb835ad8e085a0030f4aa350"
Commit f5242389 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix

parent 646832ba
......@@ -876,11 +876,11 @@ async def generate_chat_completions(form_data: dict, user=Depends(get_verified_u
print(pipe_id)
# 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)
app.state.FUNCTIONS[pipe_id] = function_module
webui_app.state.FUNCTIONS[pipe_id] = function_module
else:
function_module = app.state.FUNCTIONS[pipe_id]
function_module = webui_app.state.FUNCTIONS[pipe_id]
pipe = function_module.pipe
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment