Adds dynamic Claude model fetching and management #1

Merged
AlexKucera merged 60 commits from dynamic-models into master 2025-10-31 13:42:04 +01:00
Showing only changes of commit 61788b39ad - Show all commits
+7 -1
View File
@@ -155,7 +155,13 @@ export class PromptGeneratorService {
try {
new Notice('Generating prompts...');
const prompts = await this.client.generatePrompts(count, model, systemPrompt, examplePrompt, type);
let prompts = await this.client.generatePrompts(count, model, systemPrompt, examplePrompt, type);
// Enforce requested count - models can occasionally over-generate
// This ensures deterministic UX and correct cache key matching
if (prompts.length > count) {
prompts = prompts.slice(0, count);
}
const generatedPrompts: GeneratedPrompt[] = prompts.map(text => ({
text,