mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Activate world info only after swipe chat shift
This commit is contained in:
@ -1566,8 +1566,6 @@ async function Generate(type, automatic_trigger, force_name2) {
|
|||||||
hordeAmountGen = adjustedParams.maxLength;
|
hordeAmountGen = adjustedParams.maxLength;
|
||||||
}
|
}
|
||||||
|
|
||||||
let { worldInfoString, worldInfoBefore, worldInfoAfter } = getWorldInfoPrompt(chat2);
|
|
||||||
|
|
||||||
// Extension added strings
|
// Extension added strings
|
||||||
const allAnchors = getAllExtensionPrompts();
|
const allAnchors = getAllExtensionPrompts();
|
||||||
const afterScenarioAnchor = getExtensionPrompt(extension_prompt_types.AFTER_SCENARIO);
|
const afterScenarioAnchor = getExtensionPrompt(extension_prompt_types.AFTER_SCENARIO);
|
||||||
@ -1575,12 +1573,13 @@ async function Generate(type, automatic_trigger, force_name2) {
|
|||||||
|
|
||||||
/////////////////////// swipecode
|
/////////////////////// swipecode
|
||||||
if (type == 'swipe') {
|
if (type == 'swipe') {
|
||||||
|
|
||||||
console.log('pre swipe shift: ' + chat2.length);
|
console.log('pre swipe shift: ' + chat2.length);
|
||||||
console.log('shifting swipe chat2');
|
console.log('shifting swipe chat2');
|
||||||
chat2.shift();
|
chat2.shift();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let { worldInfoString, worldInfoBefore, worldInfoAfter } = getWorldInfoPrompt(chat2);
|
||||||
|
|
||||||
console.log('post swipe shift:' + chat2.length);
|
console.log('post swipe shift:' + chat2.length);
|
||||||
var i = 0;
|
var i = 0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user