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:
@@ -146,6 +146,8 @@ async def sync_functions(
|
|||||||
function.id,
|
function.id,
|
||||||
content=function.content,
|
content=function.content,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
return Functions.sync_functions(user.id, form_data.functions)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
log.exception(f"Failed to load a function: {e}")
|
log.exception(f"Failed to load a function: {e}")
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
@@ -154,9 +156,6 @@ async def sync_functions(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
return Functions.sync_functions(user.id, form_data.functions)
|
|
||||||
|
|
||||||
|
|
||||||
############################
|
############################
|
||||||
# CreateNewFunction
|
# CreateNewFunction
|
||||||
############################
|
############################
|
||||||
|
|||||||
Reference in New Issue
Block a user