mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-09 07:16:04 +00:00
feat: 插件开关对其内容函数生效
This commit is contained in:
@@ -14,7 +14,15 @@ def get_func_schema_list() -> list:
|
||||
if not host.__enable_content_functions__:
|
||||
return []
|
||||
|
||||
schemas = host.__callable_functions__
|
||||
schemas = []
|
||||
|
||||
for func in host.__callable_functions__:
|
||||
if func['enabled']:
|
||||
fun_cp = func.copy()
|
||||
|
||||
del fun_cp['enabled']
|
||||
|
||||
schemas.append(fun_cp)
|
||||
|
||||
return schemas
|
||||
|
||||
|
||||
Reference in New Issue
Block a user