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 ...@@ -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
......
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