mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 13:55:19 +00:00
refac
This commit is contained in:
parent
40bea00e3d
commit
1d216b82ba
1 changed files with 4 additions and 2 deletions
|
|
@ -12,11 +12,13 @@ log = logging.getLogger(__name__)
|
||||||
log.setLevel(SRC_LOG_LEVELS["MAIN"])
|
log.setLevel(SRC_LOG_LEVELS["MAIN"])
|
||||||
|
|
||||||
|
|
||||||
def get_function_module(request, function_id):
|
def get_function_module(request, function_id, load_from_db=False):
|
||||||
"""
|
"""
|
||||||
Get the function module by its ID.
|
Get the function module by its ID.
|
||||||
"""
|
"""
|
||||||
function_module, _, _ = get_function_module_from_cache(request, function_id)
|
function_module, _, _ = get_function_module_from_cache(
|
||||||
|
request, function_id, load_from_db
|
||||||
|
)
|
||||||
return function_module
|
return function_module
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue