Refactor message injection options in promptBuilder and trackerEditor

This commit is contained in:
tomt610
2026-01-09 20:24:07 +00:00
parent 94f562f1bb
commit b43cca5b6f
2 changed files with 1 additions and 4 deletions
+1 -2
View File
@@ -1188,8 +1188,7 @@ export async function generateSeparateUpdatePrompt() {
continue; continue;
} }
} }
// For assistant_message_end, extra_user_message, extra_assistant_message: // For assistant_message_end: inject into the assistant message itself
// Inject into the assistant message itself
// Append to existing or create new entry // Append to existing or create new entry
if (contextInjectionMap.has(targetIdx)) { if (contextInjectionMap.has(targetIdx)) {
-2
View File
@@ -1400,8 +1400,6 @@ function renderHistoryPersistenceTab() {
html += `<select id="rpg-history-injection-position" class="rpg-select" style="margin-left: 8px;">`; html += `<select id="rpg-history-injection-position" class="rpg-select" style="margin-left: 8px;">`;
html += `<option value="user_message_end" ${historyPersistence.injectionPosition === 'user_message_end' ? 'selected' : ''}>End of User Message</option>`; html += `<option value="user_message_end" ${historyPersistence.injectionPosition === 'user_message_end' ? 'selected' : ''}>End of User Message</option>`;
html += `<option value="assistant_message_end" ${historyPersistence.injectionPosition === 'assistant_message_end' ? 'selected' : ''}>End of Assistant Message</option>`; html += `<option value="assistant_message_end" ${historyPersistence.injectionPosition === 'assistant_message_end' ? 'selected' : ''}>End of Assistant Message</option>`;
html += `<option value="extra_user_message" ${historyPersistence.injectionPosition === 'extra_user_message' ? 'selected' : ''}>Extra User Message</option>`;
html += `<option value="extra_assistant_message" ${historyPersistence.injectionPosition === 'extra_assistant_message' ? 'selected' : ''}>Extra Assistant Message</option>`;
html += `</select>`; html += `</select>`;
html += '</div>'; html += '</div>';