From badc42275bc6273018eb26f6bf2e3f8166edd89f Mon Sep 17 00:00:00 2001 From: Roo Code Date: Sun, 21 Dec 2025 09:22:47 +0000 Subject: [PATCH] feat: improve noToolsUsed error message with Tool Protocol guidance Add guidance in the error message to suggest users try changing the Tool Protocol to "XML" in Advanced Settings when using third-party API providers with OpenAI Compatible. This helps users who encounter tool calling issues with proxied APIs. Relates to #10246 --- webview-ui/src/i18n/locales/en/chat.json | 2 +- webview-ui/src/i18n/locales/zh-CN/chat.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/webview-ui/src/i18n/locales/en/chat.json b/webview-ui/src/i18n/locales/en/chat.json index 4a4d0cf3e8..29cde5ebaf 100644 --- a/webview-ui/src/i18n/locales/en/chat.json +++ b/webview-ui/src/i18n/locales/en/chat.json @@ -288,7 +288,7 @@ "modelResponseIncomplete": "Model Response Incomplete", "modelResponseErrors": { "noToolsUsed": "The model failed to use any tools in its response. This typically happens when the model provides only text/reasoning without calling the required tools to complete the task.", - "noToolsUsedDetails": "The model provided text/reasoning but did not call any of the required tools. This usually indicates the model misunderstood the task or is having difficulty determining which tool to use. The model has been automatically prompted to retry with proper tool usage." + "noToolsUsedDetails": "The model provided text/reasoning but did not call any of the required tools. This usually indicates the model misunderstood the task or is having difficulty determining which tool to use. The model has been automatically prompted to retry with proper tool usage. If using a third-party API provider with OpenAI Compatible, try changing the Tool Protocol to \"XML\" in Advanced Settings." }, "errorDetails": { "link": "Details", diff --git a/webview-ui/src/i18n/locales/zh-CN/chat.json b/webview-ui/src/i18n/locales/zh-CN/chat.json index abaee47dcb..ebf15ba682 100644 --- a/webview-ui/src/i18n/locales/zh-CN/chat.json +++ b/webview-ui/src/i18n/locales/zh-CN/chat.json @@ -262,7 +262,7 @@ "modelResponseIncomplete": "模型响应不完整", "modelResponseErrors": { "noToolsUsed": "模型在响应中未使用任何工具。这通常发生在模型仅提供文本/推理而未调用完成任务所需的工具时。", - "noToolsUsedDetails": "模型提供了文本/推理,但未调用任何必需的工具。这通常表明模型误解了任务,或在确定使用哪个工具时遇到困难。系统已自动提示模型使用正确的工具重试。" + "noToolsUsedDetails": "模型提供了文本/推理,但未调用任何必需的工具。这通常表明模型误解了任务,或在确定使用哪个工具时遇到困难。系统已自动提示模型使用正确的工具重试。如果您使用的是第三方 API 提供商配合 OpenAI Compatible,请尝试在高级设置中将工具协议更改为 \"XML\"。" }, "errorDetails": { "link": "详情",