forked from XiaoMo/ChatGPT-Next-Web
Merge branch 'main' into prompt-edit
This commit is contained in:
commit
328a903c24
@ -78,6 +78,7 @@ const es: LocaleType = {
|
||||
SendKey: "Tecla de envío",
|
||||
Theme: "Tema",
|
||||
TightBorder: "Borde ajustado",
|
||||
SendPreviewBubble: "Send preview bubble",
|
||||
Prompt: {
|
||||
Disable: {
|
||||
Title: "Desactivar autocompletado",
|
||||
|
@ -386,7 +386,7 @@ export const useChatStore = create<ChatStore>()(
|
||||
const config = get().config;
|
||||
const n = session.messages.length;
|
||||
const recentMessages = session.messages.slice(
|
||||
n - config.historyMessageCount,
|
||||
Math.max(0, n - config.historyMessageCount),
|
||||
);
|
||||
|
||||
const memoryPrompt = get().getMemoryPrompt();
|
||||
|
Loading…
Reference in New Issue
Block a user