mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-08 15:16:24 +08:00
feat: roles must alternate between user and assistant in claude, so add a fake assistant message between two user messages
This commit is contained in:
@@ -496,7 +496,6 @@ export const useChatStore = createPersistStore(
|
||||
tokenCount += estimateTokenLength(getMessageTextContent(msg));
|
||||
reversedRecentMessages.push(msg);
|
||||
}
|
||||
|
||||
// concat all messages
|
||||
const recentMessages = [
|
||||
...systemPrompts,
|
||||
|
Reference in New Issue
Block a user