Merge branch 'main' into prompt-edit

This commit is contained in:
Yifei Zhang 2023-04-02 13:50:50 +00:00
commit 328a903c24
2 changed files with 2 additions and 1 deletions

View File

@ -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",

View File

@ -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();