From a81c927037017281ac7f30e6d756fa8ce133cc48 Mon Sep 17 00:00:00 2001 From: Martin Mois Date: Mon, 28 Oct 2024 23:04:44 +0100 Subject: [PATCH] #2714 the models array can be empty --- core/config/validation.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/config/validation.ts b/core/config/validation.ts index 5a5f44eaf..ebcbb623d 100644 --- a/core/config/validation.ts +++ b/core/config/validation.ts @@ -15,10 +15,10 @@ export function validateConfig(config: SerializedContinueConfig) { const errors: ConfigValidationError[] = []; // Validate chat models - if (!Array.isArray(config.models) || config.models.length === 0) { + if (!Array.isArray(config.models)) { errors.push({ fatal: true, - message: "The 'models' field should be a non-empty array.", + message: "The 'models' field should be an array.", }); } else { config.models.forEach((model, index) => {