From 57d6938d6cca171ea80d35eb8f9ea4126e98664a Mon Sep 17 00:00:00 2001 From: cierru Date: Tue, 7 Jan 2025 17:54:23 +0500 Subject: [PATCH] Added the force_chid parameter to the generateQuietPrompt function --- public/script.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index 331d2b516..c123936f8 100644 --- a/public/script.js +++ b/public/script.js @@ -2714,9 +2714,10 @@ export function getStoppingStrings(isImpersonate, isContinue) { * @param {string} quietImage Image to use for the quiet prompt * @param {string} quietName Name to use for the quiet prompt (defaults to "System:") * @param {number} [responseLength] Maximum response length. If unset, the global default value is used. + * @param {number} force_chid Character ID to use for this generation run * @returns */ -export async function generateQuietPrompt(quiet_prompt, quietToLoud, skipWIAN, quietImage = null, quietName = null, responseLength = null) { +export async function generateQuietPrompt(quiet_prompt, quietToLoud, skipWIAN, quietImage = null, quietName = null, responseLength = null, force_chid = null) { console.log('got into genQuietPrompt'); const responseLengthCustomized = typeof responseLength === 'number' && responseLength > 0; let originalResponseLength = -1; @@ -2729,6 +2730,7 @@ export async function generateQuietPrompt(quiet_prompt, quietToLoud, skipWIAN, q force_name2: true, quietImage: quietImage, quietName: quietName, + force_chid: force_chid, }; originalResponseLength = responseLengthCustomized ? saveResponseLength(main_api, responseLength) : -1; return await Generate('quiet', options);