MCPcopy
hub / github.com/ChatGPTNextWeb/NextChat / getMemoryPrompt

Function getMemoryPrompt

app/store/chat.ts:530–540  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

528 },
529
530 getMemoryPrompt() {
531 const session = get().currentSession();
532
533 if (session.memoryPrompt.length) {
534 return {
535 role: "system",
536 content: Locale.Store.Prompt.History(session.memoryPrompt),
537 date: "",
538 } as ChatMessage;
539 }
540 },
541
542 async getMessagesWithMemory() {
543 const session = get().currentSession();

Callers

nothing calls this directly

Calls 1

getFunction · 0.70

Tested by

no test coverage detected