mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
refac
This commit is contained in:
@@ -67,7 +67,7 @@ def get_function_module_by_id(request: Request, pipe_id: str):
|
||||
if valves:
|
||||
try:
|
||||
function_module.valves = Valves(
|
||||
**({k: v for k, v in valves if v is not None})
|
||||
**{k: v for k, v in valves if v is not None}
|
||||
)
|
||||
except Exception as e:
|
||||
log.exception(f"Error loading valves for function {pipe_id}: {e}")
|
||||
|
||||
Reference in New Issue
Block a user