Skip to content

Commit 0808df9

Browse files
Reorder embedding options in PromptTriggerSelect component
Co-authored-by: kent <[email protected]>
1 parent 8328081 commit 0808df9

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

invokeai/frontend/web/src/features/prompt/PromptTriggerSelect.tsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,6 @@ export const PromptTriggerSelect = memo(({ onSelect, onClose }: PromptTriggerSel
4242
const options = useMemo(() => {
4343
const _options: GroupBase<ComboboxOption>[] = [];
4444

45-
if (tiModels) {
46-
const embeddingOptions = tiModels
47-
.filter((ti) => ti.base === mainModelConfig?.base)
48-
.map((model) => ({ label: model.name, value: `<${model.name}>` }));
49-
50-
if (embeddingOptions.length > 0) {
51-
_options.push({
52-
label: t('prompt.compatibleEmbeddings'),
53-
options: embeddingOptions,
54-
});
55-
}
56-
}
57-
5845
if (loraModels) {
5946
const triggerPhraseOptions = loraModels
6047
.filter((lora) => map(addedLoRAs, (l) => l.model.key).includes(lora.key))
@@ -74,6 +61,19 @@ export const PromptTriggerSelect = memo(({ onSelect, onClose }: PromptTriggerSel
7461
}
7562
}
7663

64+
if (tiModels) {
65+
const embeddingOptions = tiModels
66+
.filter((ti) => ti.base === mainModelConfig?.base)
67+
.map((model) => ({ label: model.name, value: `<${model.name}>` }));
68+
69+
if (embeddingOptions.length > 0) {
70+
_options.push({
71+
label: t('prompt.compatibleEmbeddings'),
72+
options: embeddingOptions,
73+
});
74+
}
75+
}
76+
7777
if (mainModelConfig && isNonRefinerMainModelConfig(mainModelConfig) && mainModelConfig.trigger_phrases?.length) {
7878
_options.push({
7979
label: t('modelManager.mainModelTriggerPhrases'),

0 commit comments

Comments
 (0)