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 ac20fadef6 - Show all commits
+6
View File
@@ -118,6 +118,12 @@ export class PromptGeneratorService {
return null; return null;
} }
// Guard against empty cache arrays
if (cached.length === 0) {
this.cache.delete(cacheKey);
return null;
}
const now = new Date().getTime(); const now = new Date().getTime();
const cacheTime = cached[0].timestamp.getTime(); const cacheTime = cached[0].timestamp.getTime();