Added the force_chid parameter to the generateQuietPrompt function

57d6938d6cca171ea80d35eb8f9ea4126e98664a

cierru <arcciel@yandex.ru>

1 files changed, +3 -1Showing whitespace changes
public/script.js+3 -1
@@ -2714,9 +2714,10 @@ export function getStoppingStrings(isImpersonate, isContinue) {
2714 * @param {string} quietImage Image to use for the quiet prompt2714 * @param {string} quietImage Image to use for the quiet prompt
2715 * @param {string} quietName Name to use for the quiet prompt (defaults to "System:")2715 * @param {string} quietName Name to use for the quiet prompt (defaults to "System:")
2716 * @param {number} [responseLength] Maximum response length. If unset, the global default value is used.2716 * @param {number} [responseLength] Maximum response length. If unset, the global default value is used.
2717 * @param {number} force_chid Character ID to use for this generation run
2717 * @returns2718 * @returns
2718 */2719 */
2719export async function generateQuietPrompt(quiet_prompt, quietToLoud, skipWIAN, quietImage = null, quietName = null, responseLength = null) {2720export async function generateQuietPrompt(quiet_prompt, quietToLoud, skipWIAN, quietImage = null, quietName = null, responseLength = null, force_chid = null) {
2720 console.log('got into genQuietPrompt');2721 console.log('got into genQuietPrompt');
2721 const responseLengthCustomized = typeof responseLength === 'number' && responseLength > 0;2722 const responseLengthCustomized = typeof responseLength === 'number' && responseLength > 0;
2722 let originalResponseLength = -1;2723 let originalResponseLength = -1;
@@ -2729,6 +2730,7 @@ export async function generateQuietPrompt(quiet_prompt, quietToLoud, skipWIAN, q
2729 force_name2: true,2730 force_name2: true,
2730 quietImage: quietImage,2731 quietImage: quietImage,
2731 quietName: quietName,2732 quietName: quietName,
2733 force_chid: force_chid,
2732 };2734 };
2733 originalResponseLength = responseLengthCustomized ? saveResponseLength(main_api, responseLength) : -1;2735 originalResponseLength = responseLengthCustomized ? saveResponseLength(main_api, responseLength) : -1;
2734 return await Generate('quiet', options);2736 return await Generate('quiet', options);