1
0
Fork 0

Add scratchpad to chat context

This commit is contained in:
Pabloader 2026-04-08 14:04:49 +00:00
parent 67f70f236d
commit 36099bc078
1 changed files with 5 additions and 1 deletions

View File

@ -303,11 +303,15 @@ namespace Prompt {
// Chat-only worlds: system instruction + user info, no story scaffolding
if (currentWorld?.chatOnly) {
parts.unshift('# **Roleplay Context**');
const userSection = formatUserSection(state);
if (userSection) {
parts.push(userSection);
}
parts.unshift('# **Roleplay Context**');
if (currentStory.scratchpad) {
parts.push(`## Scratchpad`, currentStory.scratchpad);
}
parts.push('### **End of Roleplay Context**');
} else {
parts.push(`# Story Title: ${currentStory.title}`);