feat: vision 后端不再预设默认值,初始置空需用户自选

- vision.ts:移除默认 ollama/qwen3-vl:8b,未配置后端或模型时明确报错并给配置入口
- VisionConfig.tsx + i18n:面板无默认选中,新增未配置提示
- README/vision.md:同步移除默认表述,标注 OLLAMA_VISION_MODEL 必填
This commit is contained in:
luckyyzh
2026-08-03 13:52:08 +08:00
parent ccb038988e
commit ac0f0cdc0c
6 changed files with 59 additions and 38 deletions
+18 -1
View File
@@ -136,7 +136,7 @@ export function VisionConfigContent() {
}
}, [config]);
const backend = config.backend ?? "ollama";
const backend = config.backend;
const ollama = config.ollama ?? {};
const openai = config.openai ?? {};
@@ -205,6 +205,23 @@ export function VisionConfigContent() {
))}
</div>
{/* No backend selected yet */}
{!backend && (
<div
style={{
fontSize: 11,
color: "var(--text-muted)",
lineHeight: 1.5,
background: "var(--bg-panel)",
border: "1px dashed var(--border)",
borderRadius: 6,
padding: "8px 10px",
}}
>
{t("vision.notConfigured")}
</div>
)}
{/* Ollama settings */}
{backend === "ollama" && (
<div style={{ display: "flex", flexDirection: "column", gap: 10 }}>