Skip to content

[BUG] External tool "view" conflicts with a built-in tool of the same name. #83

Description

@silenceroom

Plugin Type

Pipe

Plugin Name

Filter - GitHub Copilot SDK Files Filter

Plugin Name (if not in list)

No response

Description

在与workspace->tools->computer-tool-use共存时,使用github-copilot-sdk模型报错如下:

External tool "view" conflicts with a built-in tool of the same name. Set overridesBuiltInTool: true to explicitly override it. Agent working in: /app/backend/data/copilot_workspace/8ca3ba9e-a8c3-4534-a7be-1062fee8cc42/0f2f8f72-8331-40d2-8d6f-88e5c85219df Connection established, waiting for response... Processing failed: External tool "view" conflicts with a built-in tool of the same name. Set overridesBuiltInTool: true to explicitly override it. External tool "view" conflicts with a built-in tool of the same name. Set overridesBuiltInTool: true to explicitly override it. External tool "view" conflicts with a built-in tool of the same name. Set overridesBuiltInTool: true to explicitly override it. [Error: External tool "view" conflicts with a built-in tool of the same name. Set overridesBuiltInTool: true to explicitly override it.]

Steps to Reproduce

  1. 在workspace->tools->安装如下脚本:
    https://github.com/Wide-Moat/open-computer-use/raw/refs/heads/main/openwebui/tools/computer_use_tools.py
  2. 使用copilot-sdk-llm,提交任何问题
  3. 模型返回报错

OpenWebUI Version

0.9.6

Operating System & Container

Docker: 29.4.0

Error Logs (Optional)

没有找到特定的log

Additional Information (Optional)

删除computer-use-tools后,copilot-sdk-llm正常返回。

模型研究发现:

  1. _convert_openwebui_tool_to_sdk() 方法在调用 define_tool() 时没有处理命名冲突。
  2. 按照如下建议修改后,返回正常。

# 修改 github_copilot_sdk.py 中 _convert_openwebui_tool_to_sdk 方法末尾 return define_tool( name=sanitized_tool_name, description=tool_description, params_type=ParamsModel, overrides_built_in_tool=True, # ← 新增这一行 )(_tool)

Checklist

  • I have searched for duplicate issues
  • I have provided clear reproduction steps
  • I have mentioned OpenWebUI version and OS/container info

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions