feat(stage-pages): add manual model input fallback when model list fails to load (#1145)

This commit is contained in:
NJX
2026-03-06 14:01:03 +08:00
committed by GitHub
parent 9cd47120e4
commit 9f347a5d80
@@ -165,6 +165,18 @@ function handleDeleteProvider(providerId: string) {
:error="activeProviderModelError"
/>
<!-- Manual model input fallback when model list fails to load -->
<div v-if="activeProviderModelError" class="mt-2">
<label class="mb-1 block text-sm font-medium">
{{ t('settings.pages.modules.consciousness.sections.section.provider-model-selection.manual_model_name') }}
</label>
<input
v-model="activeModel" type="text"
class="w-full border border-neutral-300 rounded bg-white px-3 py-2 dark:border-neutral-700 dark:bg-neutral-900"
:placeholder="t('settings.pages.modules.consciousness.sections.section.provider-model-selection.manual_model_placeholder')"
>
</div>
<!-- No models available -->
<Alert
v-else-if="providerModels.length === 0 && !isLoadingActiveProviderModels"