mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 08:13:43 +08:00 
			
		
		
		
	Merge pull request #1689 from Yidadaa/Yidadaa-patch-1
fix: #1688 wrong clear context index
This commit is contained in:
		@@ -345,7 +345,7 @@ export const useChatStore = create<ChatStore>()(
 | 
			
		||||
 | 
			
		||||
        // wont send cleared context messages
 | 
			
		||||
        const clearedContextMessages = session.messages.slice(
 | 
			
		||||
          (session.clearContextIndex ?? -1) + 1,
 | 
			
		||||
          (session.clearContextIndex ?? 0),
 | 
			
		||||
        );
 | 
			
		||||
        const messages = clearedContextMessages.filter((msg) => !msg.isError);
 | 
			
		||||
        const n = messages.length;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user