Skip to content

Commit

Permalink
fix: ChatGPTNextWeb#915 allow send 0 history messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Yidadaa authored Apr 19, 2023
1 parent e68f17b commit 072a35b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/store/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
Expand Down

0 comments on commit 072a35b

Please sign in to comment.