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 2b9c8fbc5b - Show all commits
+3
View File
@@ -135,6 +135,9 @@ export default class FreewritingPromptsPlugin extends Plugin {
if (this.promptGenerator && this.lastApiKey !== this.settings.apiKey) { if (this.promptGenerator && this.lastApiKey !== this.settings.apiKey) {
this.promptGenerator.updateApiKey(this.settings.apiKey); this.promptGenerator.updateApiKey(this.settings.apiKey);
this.lastApiKey = this.settings.apiKey; this.lastApiKey = this.settings.apiKey;
// Clear model cache to ensure model list reflects new account entitlements
// This prevents cross-key cache leakage if settings are changed programmatically
this.modelService?.clearCache();
} }
} }