mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Remove /summarize's variable usage in 'prompt'
This commit is contained in:
@ -447,7 +447,7 @@ async function summarizeCallback(args, text) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const source = args.source || extension_settings.memory.source;
|
const source = args.source || extension_settings.memory.source;
|
||||||
const prompt = substituteParamsExtended((resolveVariable(args.prompt) || extension_settings.memory.prompt), { words: extension_settings.memory.promptWords });
|
const prompt = substituteParamsExtended((args.prompt || extension_settings.memory.prompt), { words: extension_settings.memory.promptWords });
|
||||||
|
|
||||||
try {
|
try {
|
||||||
switch (source) {
|
switch (source) {
|
||||||
@ -923,10 +923,8 @@ jQuery(async function () {
|
|||||||
SlashCommandNamedArgument.fromProps({
|
SlashCommandNamedArgument.fromProps({
|
||||||
name: 'prompt',
|
name: 'prompt',
|
||||||
description: 'prompt to use for summarization',
|
description: 'prompt to use for summarization',
|
||||||
typeList: [ARGUMENT_TYPE.STRING, ARGUMENT_TYPE.VARIABLE_NAME],
|
typeList: [ARGUMENT_TYPE.STRING],
|
||||||
defaultValue: '',
|
defaultValue: '',
|
||||||
enumProvider: commonEnumProviders.variables('all'),
|
|
||||||
forceEnum: false,
|
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
unnamedArgumentList: [
|
unnamedArgumentList: [
|
||||||
|
Reference in New Issue
Block a user