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
This commit is contained in:
AlexKucera committed 2025-10-24 11:24:09 +02:00
1 parent 8e19f6bc8f
commit 435af4ccab
1 file changed
+4
+4
View File
@@ -144,6 +144,10 @@ export class PromptGeneratorService {
errors.push('API key is required'); 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) { if (settings.timedCount < 1 || settings.timedCount > 50) {
errors.push('Timed count must be between 1 and 50'); errors.push('Timed count must be between 1 and 50');
} }