fix(story-summary): clarify vector api hints

This commit is contained in:
2026-04-04 12:08:33 +08:00
parent 37b2f15d05
commit 3d1f6dc274
2 changed files with 24 additions and 5 deletions

View File

@@ -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`] ||= {};