feat: AI客服固定mimo-v2.6-flash并隐藏模型名
- 固定 CHAT_MODEL=mimo-v2.6-flash, 移除模型下拉选择框 - 不再暴露模型名: 工具栏/思考中提示/生成历史(改'回复N字') - 清理无用样式 .ac-model/.ac-model-sel 验证: 无选择器, 页面无mimo/glm字样; 实测请求model=mimo-v2.6-flash且正常回复 ✓ CHANGELOG记录
This commit is contained in:
1 parent
279655b1bd
commit
517ee35437
2 files changed
+10
-33
No files matched your search
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. See [standa
|
||||
|
||||
## Version 2026.10.12-it-tools-pro
|
||||
|
||||
### 🤖 AI 客服固定模型并隐藏模型名
|
||||
- 固定使用 **mimo-v2.6-flash**,移除界面上的模型下拉选择框
|
||||
- 三处不再暴露模型名:输入区工具栏、"思考中…"提示、生成历史条目(改为「回复 N 字」)
|
||||
- 验证:页面无模型选择器、正文无 mimo/glm 字样;实测发送请求 `model=mimo-v2.6-flash` 并正常返回按分类的站点功能清单 ✓
|
||||
|
||||
### ☁️ 自选股登录后可同步
|
||||
- `it-tools-my-stocks` 已纳入云同步白名单,合并按**代码并集**(两台设备各自添加的自选都保留、自动去重)
|
||||
- **修复缺失环节**:`myStocks` 原先只在页面加载时读一次 localStorage,登录/周期同步把云端自选股写回本机时界面不刷新
|
||||
|
||||
@@ -114,9 +114,8 @@ function fmtTime(ts: number) {
|
||||
return sameDay ? `今天 ${hm}` : `${d.getMonth() + 1}/${d.getDate()} ${hm}`;
|
||||
}
|
||||
|
||||
// ============ 模型选择(固定两款) ============
|
||||
const CHAT_MODELS = ['mimo-v2.6-flash', 'glm-5.3-flash'];
|
||||
const model = ref(CHAT_MODELS[0]);
|
||||
// ============ 模型(固定,不在界面展示也不给用户选择) ============
|
||||
const CHAT_MODEL = 'mimo-v2.6-flash';
|
||||
|
||||
// ============ 发送 ============
|
||||
const input = ref('');
|
||||
@@ -166,7 +165,7 @@ async function send(text?: string) {
|
||||
body: JSON.stringify({
|
||||
machine: getMachineId(),
|
||||
prompt: content,
|
||||
model: model.value,
|
||||
model: CHAT_MODEL,
|
||||
history: conv.messages.slice(0, -1).slice(-8),
|
||||
tools: toolCatalog.value,
|
||||
}),
|
||||
@@ -178,7 +177,7 @@ async function send(text?: string) {
|
||||
conv.messages.push({ role: 'assistant', content: j.data.reply });
|
||||
conv.updatedAt = Date.now();
|
||||
saveConvs();
|
||||
genHist.add({ title: `AI 客服: ${content.slice(0, 24)}`, detail: `${model.value} · 回复 ${j.data.reply.length} 字` });
|
||||
genHist.add({ title: `AI 客服: ${content.slice(0, 24)}`, detail: `回复 ${j.data.reply.length} 字` });
|
||||
}
|
||||
catch (e: any) {
|
||||
error.value = String(e?.message || e);
|
||||
@@ -243,7 +242,7 @@ async function send(text?: string) {
|
||||
<div class="ac-avatar">AI</div>
|
||||
<div class="ac-bubble ac-thinking">
|
||||
<span class="ac-dot" /><span class="ac-dot" /><span class="ac-dot" />
|
||||
思考中({{ model }})…
|
||||
思考中…
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="error" class="ac-error">⚠️ {{ error }}</div>
|
||||
@@ -259,12 +258,6 @@ async function send(text?: string) {
|
||||
@keydown.enter.exact.prevent="input.trim() && send()"
|
||||
/>
|
||||
<div class="ac-toolbar">
|
||||
<label class="ac-model">
|
||||
模型
|
||||
<select v-model="model" class="ac-model-sel">
|
||||
<option v-for="m in CHAT_MODELS" :key="m" :value="m">{{ m }}</option>
|
||||
</select>
|
||||
</label>
|
||||
<span class="ac-note">内容由 AI 生成,仅供参考</span>
|
||||
<button class="ac-send" :disabled="busy || !input.trim()" @click="send()">
|
||||
{{ busy ? '…' : '🚀 发送' }}
|
||||
@@ -577,27 +570,6 @@ async function send(text?: string) {
|
||||
margin-top: 9px;
|
||||
}
|
||||
|
||||
.ac-model {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
font-size: 14px;
|
||||
opacity: 0.85;
|
||||
|
||||
.ac-model-sel {
|
||||
border: 1px solid rgba(128, 128, 128, 0.35);
|
||||
border-radius: 7px;
|
||||
padding: 5px 10px;
|
||||
font-size: 14px;
|
||||
background: #fff;
|
||||
outline: none;
|
||||
|
||||
&:focus {
|
||||
border-color: #18a058;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.ac-note {
|
||||
font-size: 12.5px;
|
||||
opacity: 0.45;
|
||||
|
||||
Reference in new issue
Block a user