feat(ai): add OpenRouter and Ollama Cloud providers (#231)

Co-authored-by: Alex Kenley <Alex.Kenley@threatvectorsecurity.com>
This commit is contained in:
Alexander Kenley
2026-06-01 15:26:10 +10:00
committed by GitHub
parent 4dbc0fe73a
commit 2c4b8b57dd
27 changed files with 699 additions and 169 deletions

View File

@@ -2,6 +2,7 @@
import Storage from '../storage.js';
import state from './state.js';
import uiModule from '../ui.js';
import { sortModelObjects } from '../modelSort.js';
var escapeHtml = uiModule.esc;
@@ -84,9 +85,9 @@ async function fetchModels() {
});
});
}
state._fetchModelsCache = models;
state._fetchModelsCache = sortModelObjects(models);
state._fetchModelsCacheTime = now;
return models;
return state._fetchModelsCache;
}
// ── Shuffle pool persistence ──