fix: cloned chat metadata not taken into consideration

This commit is contained in:
silentoplayz
2025-08-05 16:21:03 -04:00
parent bd570b7e2e
commit 7c4550fa92
2 changed files with 17 additions and 2 deletions
+11 -1
View File
@@ -657,7 +657,17 @@ async def clone_shared_chat_by_id(id: str, user=Depends(get_verified_user)):
"title": f"Clone of {chat.title}",
}
chat = Chats.insert_new_chat(user.id, ChatForm(**{"chat": updated_chat}))
chat = Chats.import_chat(
user.id,
ChatImportForm(
**{
"chat": updated_chat,
"meta": chat.meta,
"pinned": chat.pinned,
"folder_id": chat.folder_id,
}
),
)
return ChatResponse(**chat.model_dump())
else:
raise HTTPException(