mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Only respect slash command, ignore text field
This commit is contained in:
@@ -8682,8 +8682,8 @@ jQuery(async function () {
|
|||||||
const fromSlashCommand = customData?.fromSlashCommand || false;
|
const fromSlashCommand = customData?.fromSlashCommand || false;
|
||||||
var id = $(this).attr('id');
|
var id = $(this).attr('id');
|
||||||
|
|
||||||
// Check whether a custom prompt was provided via custom data (for example through a slash command), otherwise fall back and use the text from the textbox, if there is any
|
// Check whether a custom prompt was provided via custom data (for example through a slash command)
|
||||||
const additionalPrompt = (customData?.additionalPrompt && customData.additionalPrompt.trim()) || (String($('#send_textarea').val()).trim() || undefined);
|
const additionalPrompt = customData?.additionalPrompt?.trim() || undefined;
|
||||||
const buildOrFillAdditionalArgs = (args = {}) => ({
|
const buildOrFillAdditionalArgs = (args = {}) => ({
|
||||||
...args,
|
...args,
|
||||||
...(additionalPrompt !== undefined && { quiet_prompt: additionalPrompt, quietToLoud: true }),
|
...(additionalPrompt !== undefined && { quiet_prompt: additionalPrompt, quietToLoud: true }),
|
||||||
|
Reference in New Issue
Block a user