Skip to content

Commit

Permalink
fix: log warning if allowlisted tool could not be found
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Oct 8, 2024
1 parent 7231aa9 commit f1864c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gptme/tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ def init_tools(allowlist=None) -> None:
continue
load_tool(tool)

for tool_name in allowlist or []:
if not has_tool(tool_name):
logger.warning(f"Tool '{tool_name}' not found")


def load_tool(tool: ToolSpec) -> None:
"""Loads a tool."""
Expand Down

0 comments on commit f1864c7

Please sign in to comment.