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",
|
SendKey: "Tecla de envío",
|
||||||
Theme: "Tema",
|
Theme: "Tema",
|
||||||
TightBorder: "Borde ajustado",
|
TightBorder: "Borde ajustado",
|
||||||
|
SendPreviewBubble: "Send preview bubble",
|
||||||
Prompt: {
|
Prompt: {
|
||||||
Disable: {
|
Disable: {
|
||||||
Title: "Desactivar autocompletado",
|
Title: "Desactivar autocompletado",
|
||||||
|
@ -386,7 +386,7 @@ export const useChatStore = create<ChatStore>()(
|
|||||||
const config = get().config;
|
const config = get().config;
|
||||||
const n = session.messages.length;
|
const n = session.messages.length;
|
||||||
const recentMessages = session.messages.slice(
|
const recentMessages = session.messages.slice(
|
||||||
n - config.historyMessageCount,
|
Math.max(0, n - config.historyMessageCount),
|
||||||
);
|
);
|
||||||
|
|
||||||
const memoryPrompt = get().getMemoryPrompt();
|
const memoryPrompt = get().getMemoryPrompt();
|
||||||
|
Loading…
Reference in New Issue
Block a user