| 2714 | * @param {string} quietImage Image to use for the quiet prompt | 2714 | * @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. Works in groups only. |
| 2717 | * @returns | 2718 | * @returns |
| 2718 | */ | 2719 | */ |
| 2719 | export async function generateQuietPrompt(quiet_prompt, quietToLoud, skipWIAN, quietImage = null, quietName = null, responseLength = null) { | 2720 | export 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; |