From 57d6938d6cca171ea80d35eb8f9ea4126e98664a Mon Sep 17 00:00:00 2001 From: cierru Date: Tue, 7 Jan 2025 17:54:23 +0500 Subject: [PATCH 1/2] 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); From 68d8d322a9619088f4b2e973eb57048e7813fde2 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Tue, 7 Jan 2025 20:15:35 +0200 Subject: [PATCH 2/2] Clarify comment regarding groups --- public/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index c123936f8..9bb3edd5b 100644 --- a/public/script.js +++ b/public/script.js @@ -2714,7 +2714,7 @@ 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 + * @param {number} force_chid Character ID to use for this generation run. Works in groups only. * @returns */ export async function generateQuietPrompt(quiet_prompt, quietToLoud, skipWIAN, quietImage = null, quietName = null, responseLength = null, force_chid = null) {