MCPcopy Create free account
hub / github.com/chhoumann/quickadd / loadData

Method loadData

src/gui/ModelDirectoryModal.ts:34–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32 }
33
34 private async loadData() {
35 try {
36 const apiKey = await resolveProviderApiKey(this.app, this.provider);
37 this.allModels = await discoverProviderModels(this.provider, apiKey);
38 this.filtered = this.allModels.slice();
39 this.loadError = null;
40 } catch (err) {
41 this.loadError = `${(err as { message?: string }).message ?? err}`;
42 new Notice(`Failed to load model directory: ${this.loadError}`);
43 }
44 }
45
46 private display() {
47 this.contentEl.empty();

Callers 2

constructorMethod · 0.95
loadSettingsMethod · 0.80

Calls 2

resolveProviderApiKeyFunction · 0.90
discoverProviderModelsFunction · 0.90

Tested by

no test coverage detected