mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-09-26 10:02:20 +02:00
feat(ai): add OpenRouter and Ollama Cloud providers (#231)
Co-authored-by: Alex Kenley <Alex.Kenley@threatvectorsecurity.com>
This commit is contained in:
co-authored by
Alex Kenley
parent
4dbc0fe73a
commit
2c4b8b57dd
@@ -4,6 +4,7 @@
|
||||
import { providerLogo } from './providers.js';
|
||||
import uiModule from './ui.js';
|
||||
import settingsModule from './settings.js';
|
||||
import { sortModelObjects } from './modelSort.js';
|
||||
|
||||
const API_BASE = window.location.origin;
|
||||
|
||||
@@ -156,7 +157,7 @@ function _initModelPickerDropdown() {
|
||||
});
|
||||
});
|
||||
});
|
||||
return result;
|
||||
return sortModelObjects(result);
|
||||
}
|
||||
|
||||
function _populate(filter) {
|
||||
@@ -184,6 +185,8 @@ function _initModelPickerDropdown() {
|
||||
if (favs.includes(m.mid)) favModels.push(m);
|
||||
else restModels.push(m);
|
||||
});
|
||||
sortModelObjects(favModels).forEach(function(m, i) { favModels[i] = m; });
|
||||
sortModelObjects(restModels).forEach(function(m, i) { restModels[i] = m; });
|
||||
|
||||
function _addSection(label) {
|
||||
const el = document.createElement('div');
|
||||
|
||||
Reference in New Issue
Block a user