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
|
// Chat-only worlds: system instruction + user info, no story scaffolding
|
||||||
if (currentWorld?.chatOnly) {
|
if (currentWorld?.chatOnly) {
|
||||||
|
parts.unshift('# **Roleplay Context**');
|
||||||
const userSection = formatUserSection(state);
|
const userSection = formatUserSection(state);
|
||||||
if (userSection) {
|
if (userSection) {
|
||||||
parts.push(userSection);
|
parts.push(userSection);
|
||||||
}
|
}
|
||||||
parts.unshift('# **Roleplay Context**');
|
|
||||||
|
if (currentStory.scratchpad) {
|
||||||
|
parts.push(`## Scratchpad`, currentStory.scratchpad);
|
||||||
|
}
|
||||||
parts.push('### **End of Roleplay Context**');
|
parts.push('### **End of Roleplay Context**');
|
||||||
} else {
|
} else {
|
||||||
parts.push(`# Story Title: ${currentStory.title}`);
|
parts.push(`# Story Title: ${currentStory.title}`);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue