mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-11 13:05:00 +08:00
Merge branch 'main' into feat-mcp
This commit is contained in:
@@ -244,7 +244,11 @@ export const useChatStore = createPersistStore(
|
||||
const newSession = createEmptySession();
|
||||
|
||||
newSession.topic = currentSession.topic;
|
||||
newSession.messages = [...currentSession.messages];
|
||||
// 深拷贝消息
|
||||
newSession.messages = currentSession.messages.map(msg => ({
|
||||
...msg,
|
||||
id: nanoid(), // 生成新的消息 ID
|
||||
}));
|
||||
newSession.mask = {
|
||||
...currentSession.mask,
|
||||
modelConfig: {
|
||||
|
Reference in New Issue
Block a user