mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-05 06:35:15 +00:00
Address copilot feedback
This commit is contained in:
parent
24fdcc52b3
commit
04213dff14
6 changed files with 14 additions and 6 deletions
|
|
@ -42,6 +42,9 @@ def load_tools(selected_names):
|
|||
continue
|
||||
|
||||
func_name = tool_def.get('function', {}).get('name', name)
|
||||
if func_name in executors:
|
||||
logger.warning(f'Tool "{name}" declares function name "{func_name}" which conflicts with an already loaded tool. Skipping.')
|
||||
continue
|
||||
tool_defs.append(tool_def)
|
||||
executors[func_name] = execute_fn
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue