From 435af4ccab81b70759ee430437918d3d34e55133 Mon Sep 17 00:00:00 2001 From: Alexander Kucera Date: Fri, 24 Oct 2025 11:24:09 +0200 Subject: [PATCH] Adds required Claude model validation check Enforces Claude model selection as a mandatory setting Prevents configuration submission without specifying a valid Claude model to ensure proper API interaction and prevent potential errors --- services/promptGenerator.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/promptGenerator.ts b/services/promptGenerator.ts index 5b3f3fd..d39e502 100644 --- a/services/promptGenerator.ts +++ b/services/promptGenerator.ts @@ -144,6 +144,10 @@ export class PromptGeneratorService { errors.push('API key is required'); } + if (!settings.model || settings.model.trim().length === 0) { + errors.push('Claude model is required'); + } + if (settings.timedCount < 1 || settings.timedCount > 50) { errors.push('Timed count must be between 1 and 50'); }