OpenRouter: match both id/text in select2 (#4237)

* OpenRouter: match both id/text in select2

* Update public/scripts/utils.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Cohee
2025-07-06 14:41:25 +03:00
committed by GitHub
parent 38a7668535
commit e1a55408b6
3 changed files with 54 additions and 1 deletions
+2 -1
View File
@@ -7,7 +7,7 @@ import { renderTemplateAsync } from './templates.js';
import { POPUP_TYPE, callGenericPopup } from './popup.js';
import { t } from './i18n.js';
import { accountStorage } from './util/AccountStorage.js';
import { localizePagination, PAGINATION_TEMPLATE } from './utils.js';
import { localizePagination, PAGINATION_TEMPLATE, textValueMatcher } from './utils.js';
let mancerModels = [];
let togetherModels = [];
@@ -1005,6 +1005,7 @@ export function initTextGenModels() {
searchInputCssClass: 'text_pole',
width: '100%',
templateResult: getOpenRouterModelTemplate,
matcher: textValueMatcher,
});
$('#vllm_model').select2({
placeholder: t`Select a model`,