mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Default bracket, make sure we have memories.
This commit is contained in:
@ -25,7 +25,7 @@ const defaultSettings = {
|
|||||||
chroma_depth_min: -1,
|
chroma_depth_min: -1,
|
||||||
chroma_depth_max: 500,
|
chroma_depth_max: 500,
|
||||||
chroma_depth_step: 1,
|
chroma_depth_step: 1,
|
||||||
chroma_default_msg: "In a past conversation: {{memories}}",
|
chroma_default_msg: "In a past conversation: [{{memories}}]",
|
||||||
|
|
||||||
split_length: 384,
|
split_length: 384,
|
||||||
split_length_min: 64,
|
split_length_min: 64,
|
||||||
@ -590,7 +590,9 @@ window.chromadb_interceptGeneration = async (chat, maxContext) => {
|
|||||||
if (selectedStrategy === 'custom') {
|
if (selectedStrategy === 'custom') {
|
||||||
const context = getContext();
|
const context = getContext();
|
||||||
recallMsg = substituteParams(recallMsg, context.name1, context.name2);
|
recallMsg = substituteParams(recallMsg, context.name1, context.name2);
|
||||||
console.log(recallMsg)
|
if (!text.includes("{{memories}}")) {
|
||||||
|
text += " {{memories}}";
|
||||||
|
}
|
||||||
let recallStart = recallMsg.split('{{memories}}')[0]
|
let recallStart = recallMsg.split('{{memories}}')[0]
|
||||||
let recallEnd = recallMsg.split('{{memories}}')[1]
|
let recallEnd = recallMsg.split('{{memories}}')[1]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user