fix(model): hide Ollama tip for remote models

This commit is contained in:
wolfkill
2026-05-14 15:21:11 +08:00
committed by lyingbug
parent a27f12a6cb
commit 5a81441637
3 changed files with 35 additions and 1 deletions
@@ -30,7 +30,10 @@
</div>
<!-- Ollama不可用时的提示信息 -->
<div v-else-if="ollamaServiceStatus === false" class="ollama-unavailable-tip">
<div
v-else-if="shouldShowOllamaUnavailableTip(formData.source, modelType, ollamaServiceStatus)"
class="ollama-unavailable-tip"
>
<t-icon name="error-circle-filled" class="tip-icon" />
<span class="tip-text">{{ $t('model.editor.ollamaUnavailable') }}</span>
<t-button
@@ -334,6 +337,7 @@ import { getWeKnoraCloudStatus } from '@/api/model'
import { useI18n } from 'vue-i18n'
import { useUIStore } from '@/stores/ui'
import SettingDrawer from '@/components/settings/SettingDrawer.vue'
import { shouldShowOllamaUnavailableTip } from '@/components/modelEditorSourceState'
interface CustomHeaderItem {
key: string