diff --git a/modules/story-summary/story-summary-ui.js b/modules/story-summary/story-summary-ui.js index cc74289..b67d7ee 100644 --- a/modules/story-summary/story-summary-ui.js +++ b/modules/story-summary/story-summary-ui.js @@ -917,6 +917,15 @@ All checks passed. Beginning incremental extraction... }; ['l0', 'embedding', 'rerank'].forEach(prefix => { + $(`${prefix}-api-key-toggle`).onclick = () => { + const input = $(`${prefix}-api-key`); + const btn = $(`${prefix}-api-key-toggle`); + if (!input || !btn) return; + const show = input.type === 'password'; + input.type = show ? 'text' : 'password'; + btn.textContent = show ? '隐藏' : '显示'; + }; + $(`${prefix}-api-provider`).onchange = e => { saveCurrentVectorApiProfile(prefix); const target = config.vector[`${prefix}Api`] ||= {}; diff --git a/modules/story-summary/story-summary.html b/modules/story-summary/story-summary.html index a111f1f..0559e8c 100644 --- a/modules/story-summary/story-summary.html +++ b/modules/story-summary/story-summary.html @@ -423,7 +423,8 @@
- 推荐给 L0 使用便宜或免费的大批量模型,不建议直接消耗酒馆主 API。推荐:硅基流动 / OpenRouter / 自定义 OpenAI 兼容接口。 + 推荐给 L0 使用便宜或免费的高并发渠道。
+ 自定义渠道请填写 OpenAI 兼容基础地址(通常为 /v1)。Embedding 会自动补 /embeddings,Rerank 会自动补 /rerank
@@ -435,7 +436,7 @@
-
默认 10。免费账号可调低到 1-3,线路稳定时可自行调高。
+
请视 API 情况自行调整。
@@ -455,7 +456,10 @@
- +
+ + +
@@ -504,7 +508,10 @@
- +
+ + +
@@ -553,7 +560,10 @@
- +
+ + +