Skip to content

Commit 68e5163

Browse files
committed
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
1 parent 93bccfe commit 68e5163

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/prompts/tools/native-tools/ask_followup_question.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default {
5151
required: ["text", "mode"],
5252
additionalProperties: false,
5353
},
54-
minItems: 2,
54+
minItems: 1,
5555
maxItems: 4,
5656
},
5757
},

0 commit comments

Comments
 (0)