mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Use explicit unnamed argument first if exists
This commit is contained in:
@ -940,7 +940,7 @@ async function executeSlashCommands(text) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
console.debug('Slash command executing:', result);
|
console.debug('Slash command executing:', result);
|
||||||
const unnamedArg = pipeResult || result.value;
|
const unnamedArg = result.value || pipeResult;
|
||||||
pipeResult = await result.command.callback(result.args, unnamedArg);
|
pipeResult = await result.command.callback(result.args, unnamedArg);
|
||||||
|
|
||||||
if (result.command.interruptsGeneration) {
|
if (result.command.interruptsGeneration) {
|
||||||
|
Reference in New Issue
Block a user