From 68e51639e1ce7382feb33f87a2c0e94153cd6417 Mon Sep 17 00:00:00 2001 From: daniel-lxs Date: Thu, 8 Jan 2026 15:11:37 -0500 Subject: [PATCH] fix: change minItems from 2 to 1 for Anthropic API compatibility The Anthropic API only supports minItems values of 0 or 1 for array types in tool schemas. This fixes the 400 error when using ask_followup_question with Anthropic models via OpenRouter. Fixes ROO-420 --- src/core/prompts/tools/native-tools/ask_followup_question.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/prompts/tools/native-tools/ask_followup_question.ts b/src/core/prompts/tools/native-tools/ask_followup_question.ts index f4f95b2cedd..b0591206ade 100644 --- a/src/core/prompts/tools/native-tools/ask_followup_question.ts +++ b/src/core/prompts/tools/native-tools/ask_followup_question.ts @@ -51,7 +51,7 @@ export default { required: ["text", "mode"], additionalProperties: false, }, - minItems: 2, + minItems: 1, maxItems: 4, }, },