Polish Hermes model and MCP labels

This commit is contained in:
2026-05-11 18:22:54 +08:00
parent 9a5fb16dfd
commit f298be6079
2 changed files with 7 additions and 7 deletions

View File

@@ -1282,7 +1282,7 @@ async function saveModelConfig() {
toast("默认模型不能为空"); toast("默认模型不能为空");
return; return;
} }
if (!confirm("保存 AI 模型接入配置后会重启线上 Hermes agent当前正在生成的任务可能中断。继续吗")) return; if (!confirm("保存模型页的运行模型配置后会重启线上 Hermes agent当前正在生成的任务可能中断。继续吗")) return;
const btn = document.getElementById("hermesModelSaveBtn"); const btn = document.getElementById("hermesModelSaveBtn");
const oldHTML = btn?.innerHTML; const oldHTML = btn?.innerHTML;
if (btn) { if (btn) {
@@ -1312,7 +1312,7 @@ async function saveModelConfig() {
setSharedConfigStatus("模型 Profile 共享保存失败: " + (error.message || error), true); setSharedConfigStatus("模型 Profile 共享保存失败: " + (error.message || error), true);
}); });
setHermesModelStatus("模型配置已保存并重启 · 备份 " + (saved.backup || "已创建")); setHermesModelStatus("模型配置已保存并重启 · 备份 " + (saved.backup || "已创建"));
toast("AI 模型接入配置已生效"); toast("模型页配置已生效");
setTimeout(() => { setTimeout(() => {
pingBackend(); pingBackend();
refreshDashboard(); refreshDashboard();
@@ -1330,7 +1330,7 @@ async function saveModelConfig() {
async function saveMcpConfig() { async function saveMcpConfig() {
const mcpServersYaml = document.getElementById("mcpServersYaml")?.value || ""; const mcpServersYaml = document.getElementById("mcpServersYaml")?.value || "";
if (!confirm("保存 MCP 工具接入配置后会重启线上 Hermes agent当前正在生成的任务可能中断。继续吗")) return; if (!confirm("保存工具集里的 MCP 配置后会重启线上 Hermes agent当前正在生成的任务可能中断。继续吗")) return;
const btn = document.getElementById("hermesMcpSaveBtn"); const btn = document.getElementById("hermesMcpSaveBtn");
const oldHTML = btn?.innerHTML; const oldHTML = btn?.innerHTML;
if (btn) { if (btn) {
@@ -1357,7 +1357,7 @@ async function saveMcpConfig() {
}; };
_hermesConfigLoaded = false; _hermesConfigLoaded = false;
setHermesMcpStatus("MCP 配置已保存并重启 · 备份 " + (saved.backup || "已创建")); setHermesMcpStatus("MCP 配置已保存并重启 · 备份 " + (saved.backup || "已创建"));
toast("MCP 工具接入配置已生效"); toast("工具集 MCP 配置已生效");
setTimeout(() => { setTimeout(() => {
pingBackend(); pingBackend();
refreshDashboard(); refreshDashboard();

View File

@@ -11,7 +11,7 @@
<link rel="icon" type="image/svg+xml" href="./icon.svg"> <link rel="icon" type="image/svg+xml" href="./icon.svg">
<link rel="apple-touch-icon" href="./icon.svg"> <link rel="apple-touch-icon" href="./icon.svg">
<title>爱马仕 · AI</title> <title>爱马仕 · AI</title>
<link rel="stylesheet" href="./styles.css?v=20260511-settings-ia-v34"> <link rel="stylesheet" href="./styles.css?v=20260511-settings-ia-v35">
</head> </head>
<body> <body>
@@ -1478,7 +1478,7 @@ git push # Gitea kangwan/hermes-glass-ui-personal
</div> </div>
<div class="about-item"> <div class="about-item">
<div class="about-lbl">模型</div> <div class="about-lbl">模型</div>
<div class="about-val" id="aboutModelValue">AI 模型接入配置为准</div> <div class="about-val" id="aboutModelValue">以「模型」页配置为准</div>
</div> </div>
<div class="about-item"> <div class="about-item">
<div class="about-lbl">代理</div> <div class="about-lbl">代理</div>
@@ -1501,6 +1501,6 @@ git push # Gitea kangwan/hermes-glass-ui-personal
</main> </main>
</div> </div>
<script src="./app.js?v=20260511-settings-ia-v34"></script> <script src="./app.js?v=20260511-settings-ia-v35"></script>
</body> </body>
</html> </html>