refac: functions

This commit is contained in:
Timothy Jaeryang Baek committed 2025-10-07 14:20:07 -05:00
1 parent 299e0e2674
commit f5e1a42f51
5 files changed
+536 -437

No files matched your search

+6
View File
@@ -10,6 +10,7 @@ from open_webui.models.functions import (
FunctionForm,
FunctionModel,
FunctionResponse,
FunctionUserResponse,
FunctionWithValvesModel,
Functions,
)
@@ -42,6 +43,11 @@ async def get_functions(user=Depends(get_verified_user)):
return Functions.get_functions()
@router.get("/list", response_model=list[FunctionUserResponse])
async def get_function_list(user=Depends(get_admin_user)):
return Functions.get_function_list()
############################
# ExportFunctions
############################