Add scratchpad to chat context
This commit is contained in:
parent
67f70f236d
commit
36099bc078
|
|
@ -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}`);
|
||||
|
|
|
|||
Loading…
Reference in New Issue