Polish Hermes model and MCP labels
This commit is contained in:
@@ -1282,7 +1282,7 @@ async function saveModelConfig() {
|
||||
toast("默认模型不能为空");
|
||||
return;
|
||||
}
|
||||
if (!confirm("保存 AI 模型接入配置后会重启线上 Hermes agent,当前正在生成的任务可能中断。继续吗?")) return;
|
||||
if (!confirm("保存模型页的运行模型配置后会重启线上 Hermes agent,当前正在生成的任务可能中断。继续吗?")) return;
|
||||
const btn = document.getElementById("hermesModelSaveBtn");
|
||||
const oldHTML = btn?.innerHTML;
|
||||
if (btn) {
|
||||
@@ -1312,7 +1312,7 @@ async function saveModelConfig() {
|
||||
setSharedConfigStatus("模型 Profile 共享保存失败: " + (error.message || error), true);
|
||||
});
|
||||
setHermesModelStatus("模型配置已保存并重启 · 备份 " + (saved.backup || "已创建"));
|
||||
toast("AI 模型接入配置已生效");
|
||||
toast("模型页配置已生效");
|
||||
setTimeout(() => {
|
||||
pingBackend();
|
||||
refreshDashboard();
|
||||
@@ -1330,7 +1330,7 @@ async function saveModelConfig() {
|
||||
|
||||
async function saveMcpConfig() {
|
||||
const mcpServersYaml = document.getElementById("mcpServersYaml")?.value || "";
|
||||
if (!confirm("保存 MCP 工具接入配置后会重启线上 Hermes agent,当前正在生成的任务可能中断。继续吗?")) return;
|
||||
if (!confirm("保存工具集里的 MCP 配置后会重启线上 Hermes agent,当前正在生成的任务可能中断。继续吗?")) return;
|
||||
const btn = document.getElementById("hermesMcpSaveBtn");
|
||||
const oldHTML = btn?.innerHTML;
|
||||
if (btn) {
|
||||
@@ -1357,7 +1357,7 @@ async function saveMcpConfig() {
|
||||
};
|
||||
_hermesConfigLoaded = false;
|
||||
setHermesMcpStatus("MCP 配置已保存并重启 · 备份 " + (saved.backup || "已创建"));
|
||||
toast("MCP 工具接入配置已生效");
|
||||
toast("工具集 MCP 配置已生效");
|
||||
setTimeout(() => {
|
||||
pingBackend();
|
||||
refreshDashboard();
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<link rel="icon" type="image/svg+xml" href="./icon.svg">
|
||||
<link rel="apple-touch-icon" href="./icon.svg">
|
||||
<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>
|
||||
<body>
|
||||
|
||||
@@ -1478,7 +1478,7 @@ git push # Gitea kangwan/hermes-glass-ui-personal
|
||||
</div>
|
||||
<div class="about-item">
|
||||
<div class="about-lbl">模型</div>
|
||||
<div class="about-val" id="aboutModelValue">AI 模型接入配置为准</div>
|
||||
<div class="about-val" id="aboutModelValue">以「模型」页配置为准</div>
|
||||
</div>
|
||||
<div class="about-item">
|
||||
<div class="about-lbl">代理</div>
|
||||
@@ -1501,6 +1501,6 @@ git push # Gitea kangwan/hermes-glass-ui-personal
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<script src="./app.js?v=20260511-settings-ia-v34"></script>
|
||||
<script src="./app.js?v=20260511-settings-ia-v35"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user