Просмотр исходного кода

fix: change minItems from 2 to 1 for Anthropic API compatibility (#10551)

Daniel 2 месяцев назад
Родитель
Сommit
1d9f7f2aa6
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/core/prompts/tools/native-tools/ask_followup_question.ts

+ 1 - 1
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,
 				},
 			},