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:
@@ -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`,
|
||||
|
||||
Reference in New Issue
Block a user