mirror of
https://github.com/Youzini-afk/ST-Bionic-Memory-Ecology.git
synced 2026-05-15 22:30:38 +08:00
Merge branch 'Youzini-afk:main' into main
This commit is contained in:
@@ -462,6 +462,23 @@ export async function onGenerationAfterCommandsController(
|
||||
|
||||
const runtimeRecallOptions =
|
||||
recallContext.recallOptions || recallOptions || {};
|
||||
if (
|
||||
params &&
|
||||
typeof params === "object" &&
|
||||
runtimeRecallOptions?.authoritativeInputUsed === true
|
||||
) {
|
||||
const authoritativePrompt = String(
|
||||
runtimeRecallOptions?.overrideUserMessage ||
|
||||
runtimeRecallOptions?.userMessage ||
|
||||
"",
|
||||
).trim();
|
||||
if (authoritativePrompt) {
|
||||
params.prompt = authoritativePrompt;
|
||||
if (Object.prototype.hasOwnProperty.call(params, "user_input")) {
|
||||
params.user_input = authoritativePrompt;
|
||||
}
|
||||
}
|
||||
}
|
||||
const deliveryMode =
|
||||
runtime.resolveGenerationRecallDeliveryMode?.(
|
||||
recallContext.hookName,
|
||||
|
||||
Reference in New Issue
Block a user