mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-14 04:08:46 +00:00
refac
This commit is contained in:
parent
7840194631
commit
97333a4697
1 changed files with 0 additions and 4 deletions
|
|
@ -912,10 +912,6 @@ async def get_builtin_tools(
|
|||
)
|
||||
|
||||
spec = get_builtin_tool_spec(func)
|
||||
if func.__name__ in {'view_skill', 'read_skill_file', 'grep_skill_files'}:
|
||||
spec['parameters']['properties']['id']['enum'] = skill_ids
|
||||
elif func.__name__ == 'update_skill_files':
|
||||
spec['parameters']['properties']['id']['enum'] = workspace_skill_ids
|
||||
if func.__name__ == 'delegate_task' and not config.get('subagents.background_enabled'):
|
||||
parameters = spec.get('parameters', {})
|
||||
parameters.get('properties', {}).pop('background', None)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue