mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
Windows local deployment switch "tool“ interface failed (#2483)
This commit is contained in:
parent
8b49e0ee2a
commit
5ff6b1da07
|
@ -58,7 +58,7 @@ class BuiltinToolProviderController(ToolProviderController):
|
|||
tool_files = list(filter(lambda x: x.endswith(".yaml") and not x.startswith("__"), listdir(tool_path)))
|
||||
tools = []
|
||||
for tool_file in tool_files:
|
||||
with open(path.join(tool_path, tool_file)) as f:
|
||||
with open(path.join(tool_path, tool_file), encoding='utf-8') as f:
|
||||
# get tool name
|
||||
tool_name = tool_file.split(".")[0]
|
||||
tool = load(f.read(), FullLoader)
|
||||
|
|
Loading…
Reference in New Issue
Block a user