@@ -5,6 +5,7 @@ import { apiFetch } from '@/shared/api'
55import { store } from ' @/shared/store'
66import { profileManager } from ' @/managers/profileManager'
77import { settingsManager } from ' @/managers/settingsManager'
8+ import { modelManager } from ' @/managers/modelManager'
89import { saverManager } from ' @/managers/saverManager'
910import { useToast , useConfirm , SButton , SModal , SInput , STextarea , SSelect , SFormItem , SFormSection , SFormDetails , SPageToolbar , SPageContent , SMultiSelect , SEntityList , STabBar , STab } from ' @sbot/ui'
1011import QRCode from ' qrcode'
@@ -147,7 +148,7 @@ const agentOptions = computed(() => Object.entries(store.settings.agents || {
147148const saverOptions = computed (() => Object .entries (store .settings .savers || {}).map (([id , s ]) => ({ id , label: (s as any ).name || id })))
148149const noteOptions = computed (() => Object .entries (store .settings .notes || {}).map (([id , n ]) => ({ id , label: n .name || id })))
149150const wikiOptions = computed (() => Object .entries (store .settings .wikis || {}).map (([id , w ]) => ({ id , label: (w as any ).name || id })))
150- const modelOptions = computed (() => Object . entries ( store . settings . models || {}). map (([ id , m ]) => ({ id , label: ( m as any ). name || id })))
151+ const modelOptions = modelManager . options
151152const memoryProfileOptions = computed (() => Object .entries (store .settings .memoryProfiles || {}).map (([id , p ]) => ({ id , label: (p as any ).name || id })))
152153const agendaProfileOptions = computed (() => Object .entries (store .settings .agendaProfiles || {}).map (([id , p ]) => ({ id , label: (p as any ).name || id })))
153154
@@ -835,7 +836,7 @@ async function refresh() {
835836 <span v-if =" c.askTimeout != null && c.askTimeout > 0" class =" session-meta-chip" >{{ t('channels.ask_timeout') }}: {{ c.askTimeout }}</span >
836837 <span v-if =" c.mergeWindow != null && c.mergeWindow > 0" class =" session-meta-chip" >{{ t('channels.merge_window') }}: {{ c.mergeWindow }}ms</span >
837838 <span v-if =" showIntentFilterModeChip(c.intentFilterMode, c.intentModel)" class =" session-meta-chip" :class =" intentFilterModeClass(c.intentFilterMode)" >{{ t('channels.intent_filter_mode') }}: {{ formatIntentFilterMode(c.intentFilterMode) }}</span >
838- <span v-if =" (c.intentFilterMode ?? IntentFilterMode.Auto) === IntentFilterMode.Auto && c.intentModel" class =" session-meta-chip" >{{ t('channels.intent_model') }}: {{ modelOptions.find(m => m.id === c.intentModel)?.label || c.intentModel }}</span >
839+ <span v-if =" (c.intentFilterMode ?? IntentFilterMode.Auto) === IntentFilterMode.Auto && c.intentModel" class =" session-meta-chip" >{{ t('channels.intent_model') }}: {{ modelManager.nameOf( c.intentModel) }}</span >
839840 <span v-if =" c.tools !== undefined" class =" session-meta-chip" :class =" c.tools.length ? '' : 'orange'" >{{ t('channels.tools') }}: {{ c.tools.length ? c.tools.map(n => plugins.find(p => p.type === c.type)?.tools?.find(t => t.name === n)?.label || n).join(', ') : t('channels.tools_blocked') }}</span >
840841 <span v-if =" c.triggerTools !== undefined" class =" session-meta-chip" :class =" c.triggerTools.length ? '' : 'orange'" >{{ t('channels.trigger_tools') }}: {{ c.triggerTools.length ? c.triggerTools.map(n => plugins.find(p => p.type === c.type)?.tools?.find(t => t.name === n)?.label || n).join(', ') : t('channels.tools_blocked') }}</span >
841842 </template >
@@ -879,7 +880,7 @@ async function refresh() {
879880 <span v-if =" s.approvalTimeout != null && s.approvalTimeout > 0" class =" session-meta-chip" >{{ t('channels.approval_timeout') }}: {{ s.approvalTimeout }} / {{ s.approvalTimeoutValue === ApprovalTimeoutValue.Allow ? t('channels.approval_timeout_value_allow') : t('channels.approval_timeout_value_deny') }}</span >
880881 <span v-if =" s.askTimeout != null && s.askTimeout > 0" class =" session-meta-chip" >{{ t('channels.ask_timeout') }}: {{ s.askTimeout }}</span >
881882 <span v-if =" showIntentFilterModeChip(s.intentFilterMode, s.intentModel)" class =" session-meta-chip" :class =" intentFilterModeClass(s.intentFilterMode)" >{{ t('channels.intent_filter_mode') }}: {{ formatIntentFilterMode(s.intentFilterMode) }}</span >
882- <span v-if =" (s.intentFilterMode ?? IntentFilterMode.Auto) === IntentFilterMode.Auto && s.intentModel" class =" session-meta-chip" >{{ t('channels.intent_model') }}: {{ modelOptions.find(m => m.id === s.intentModel)?.label || s.intentModel }}{{ s.intentThreshold != null ? ` · ${s.intentThreshold}` : '' }}</span >
883+ <span v-if =" (s.intentFilterMode ?? IntentFilterMode.Auto) === IntentFilterMode.Auto && s.intentModel" class =" session-meta-chip" >{{ t('channels.intent_model') }}: {{ modelManager.nameOf( s.intentModel) }}{{ s.intentThreshold != null ? ` · ${s.intentThreshold}` : '' }}</span >
883884 </template >
884885 </SEntityList >
885886 <SEntityList
0 commit comments