mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-03 04:37:40 +01:00
Fix macro not replacing in custom prompt
This commit is contained in:
parent
d62f18b523
commit
b4ecba2a45
@ -1161,7 +1161,7 @@ export async function getExpressionLabel(text, expressionsApi = extension_settin
|
||||
}
|
||||
|
||||
const expressionsList = await getExpressionsList();
|
||||
const prompt = customPrompt || await getLlmPrompt(expressionsList);
|
||||
const prompt = substituteParamsExtended(String(customPrompt), { labels: expressionsList }) || await getLlmPrompt(expressionsList);
|
||||
let functionResult = null;
|
||||
eventSource.once(event_types.TEXT_COMPLETION_SETTINGS_READY, onTextGenSettingsReady);
|
||||
eventSource.once(event_types.LLM_FUNCTION_TOOL_REGISTER, onFunctionToolRegister);
|
||||
|
Loading…
x
Reference in New Issue
Block a user