feat: 大模型配置增加思考模式和视觉能力选项

- 数据库新增 enable_thinking 和 enable_vision 字段
- 后台管理表格显示思考🧠和视觉👁️能力状态
- 添加/编辑表单增加开关按钮选择
- 兼容旧数据库自动添加新字段
This commit is contained in:
2026-04-29 18:08:27 +08:00
parent 6fd916f57c
commit 7c8adc0d78
3 changed files with 127 additions and 9 deletions

View File

@@ -401,6 +401,54 @@
.toast.show {
opacity: 1;
}
/* 表单行(双列布局) */
.form-row {
display: flex;
gap: 20px;
margin-bottom: 16px;
}
.form-group-half {
flex: 1;
}
/* 表单提示 */
.form-tip {
font-size: 12px;
color: #999;
margin-top: 4px;
}
/* 开关按钮 */
.toggle-switch {
width: 50px;
height: 26px;
background: #ccc;
border-radius: 13px;
cursor: pointer;
position: relative;
transition: background 0.3s;
}
.toggle-switch.active {
background: var(--primary);
}
.toggle-slider {
width: 22px;
height: 22px;
background: white;
border-radius: 50%;
position: absolute;
top: 2px;
left: 2px;
transition: left 0.3s;
}
.toggle-switch.active .toggle-slider {
left: 26px;
}
</style>
</head>
<body>