mirror of
https://github.com/Youzini-afk/ST-Bionic-Memory-Ecology.git
synced 2026-05-15 22:30:38 +08:00
Default recall card display to beautify only
This commit is contained in:
4
index.js
4
index.js
@@ -352,7 +352,7 @@ const defaultSettings = {
|
|||||||
|
|
||||||
// 召回设置
|
// 召回设置
|
||||||
recallEnabled: true,
|
recallEnabled: true,
|
||||||
recallCardUserInputDisplayMode: "mirror",
|
recallCardUserInputDisplayMode: "beautify_only",
|
||||||
recallTopK: 20, // 向量预筛 Top-K
|
recallTopK: 20, // 向量预筛 Top-K
|
||||||
recallMaxNodes: 8, // LLM 召回最大节点数
|
recallMaxNodes: 8, // LLM 召回最大节点数
|
||||||
recallEnableLLM: true, // 是否启用 LLM 精确召回
|
recallEnableLLM: true, // 是否启用 LLM 精确召回
|
||||||
@@ -1846,7 +1846,7 @@ function normalizeRecallCardUserInputDisplayMode(mode) {
|
|||||||
) {
|
) {
|
||||||
return normalized;
|
return normalized;
|
||||||
}
|
}
|
||||||
return "mirror";
|
return "beautify_only";
|
||||||
}
|
}
|
||||||
|
|
||||||
function applyRecallCardUserInputDisplayMode(messageElement, mode) {
|
function applyRecallCardUserInputDisplayMode(messageElement, mode) {
|
||||||
|
|||||||
4
panel.js
4
panel.js
@@ -1539,7 +1539,7 @@ function _refreshConfigTab() {
|
|||||||
);
|
);
|
||||||
_setInputValue(
|
_setInputValue(
|
||||||
"bme-setting-recall-card-user-input-display-mode",
|
"bme-setting-recall-card-user-input-display-mode",
|
||||||
settings.recallCardUserInputDisplayMode ?? "mirror",
|
settings.recallCardUserInputDisplayMode ?? "beautify_only",
|
||||||
);
|
);
|
||||||
|
|
||||||
_setInputValue("bme-setting-extract-every", settings.extractEvery ?? 1);
|
_setInputValue("bme-setting-extract-every", settings.extractEvery ?? 1);
|
||||||
@@ -1829,7 +1829,7 @@ function _bindConfigControls() {
|
|||||||
recallCardUserInputDisplayModeEl.addEventListener("change", () => {
|
recallCardUserInputDisplayModeEl.addEventListener("change", () => {
|
||||||
_patchSettings({
|
_patchSettings({
|
||||||
recallCardUserInputDisplayMode:
|
recallCardUserInputDisplayMode:
|
||||||
recallCardUserInputDisplayModeEl.value || "mirror",
|
recallCardUserInputDisplayModeEl.value || "beautify_only",
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
recallCardUserInputDisplayModeEl.dataset.bmeBound = "true";
|
recallCardUserInputDisplayModeEl.dataset.bmeBound = "true";
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ function normalizeUserInputDisplayMode(mode) {
|
|||||||
) {
|
) {
|
||||||
return normalized;
|
return normalized;
|
||||||
}
|
}
|
||||||
return "mirror";
|
return "beautify_only";
|
||||||
}
|
}
|
||||||
|
|
||||||
function stableSerialize(value) {
|
function stableSerialize(value) {
|
||||||
@@ -198,7 +198,7 @@ export function createRecallCardElement({
|
|||||||
userMessageText = "",
|
userMessageText = "",
|
||||||
graph = null,
|
graph = null,
|
||||||
themeName = "crimson",
|
themeName = "crimson",
|
||||||
userInputDisplayMode = "mirror",
|
userInputDisplayMode = "beautify_only",
|
||||||
callbacks = {},
|
callbacks = {},
|
||||||
}) {
|
}) {
|
||||||
const card = el("div", "bme-recall-card");
|
const card = el("div", "bme-recall-card");
|
||||||
|
|||||||
Reference in New Issue
Block a user