feat(stage): active model always on top (#185)

This commit is contained in:
LemonNeko
2025-05-30 11:51:29 +08:00
committed by GitHub
parent dc8bd7e87c
commit 3b7d2222fa
3 changed files with 3 additions and 3 deletions
@@ -75,7 +75,7 @@ onTokenLiteral(async () => {
<div
p="1" border="1 solid primary-200" rounded-lg m="y-1" bg="primary-100"
>
Called {{ slice.toolCall.function.name }}
Called: <code>{{ slice.toolCall.function.name }}</code>
</div>
</div>
<div v-else-if="slice.type === 'tool-call-result'" /> <!-- this line should be unreachable -->
@@ -139,7 +139,7 @@ function updateCustomModelName(value: string) {
<RadioCardManySelect
v-model="activeModel"
v-model:search-query="modelSearchQuery"
:items="providerModels"
:items="providerModels.sort((a, b) => a.id === activeModel ? -1 : b.id === activeModel ? 1 : 0)"
:searchable="true"
:search-placeholder="t('settings.pages.modules.consciousness.sections.section.provider-model-selection.search_placeholder')"
:search-no-results-title="t('settings.pages.modules.consciousness.sections.section.provider-model-selection.no_search_results')"
@@ -139,7 +139,7 @@ function updateCustomModelName(value: string) {
<RadioCardManySelect
v-model="activeModel"
v-model:search-query="modelSearchQuery"
:items="providerModels"
:items="providerModels.sort((a, b) => a.id === activeModel ? -1 : b.id === activeModel ? 1 : 0)"
:searchable="true"
:search-placeholder="t('settings.pages.modules.consciousness.sections.section.provider-model-selection.search_placeholder')"
:search-no-results-title="t('settings.pages.modules.consciousness.sections.section.provider-model-selection.no_search_results')"