feat(stage-pages): add manual model input fallback when model list fails to load (#1145)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user