mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-09 11:36:38 +08:00
fix: #915 allow send 0 history messages
This commit is contained in:
parent
561e2df23f
commit
930fcdcd6a
@ -478,7 +478,7 @@ export const useChatStore = create<ChatStore>()(
|
||||
n - config.historyMessageCount,
|
||||
);
|
||||
const longTermMemoryMessageIndex = session.lastSummarizeIndex;
|
||||
const oldestIndex = Math.min(
|
||||
const oldestIndex = Math.max(
|
||||
shortTermMemoryMessageIndex,
|
||||
longTermMemoryMessageIndex,
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user