mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
🤖 fix: Remove versions and __v when Duplicating an Agent (#8115)
Revert "Add tests for agent duplication controller" This reverts commit 3e7beb1cc336bcfe1c57411e9c151f5e6aa927e4.
This commit is contained in:
parent
1060ae8040
commit
3e1591d404
2 changed files with 197 additions and 0 deletions
|
|
@ -242,6 +242,8 @@ const duplicateAgentHandler = async (req, res) => {
|
|||
createdAt: _createdAt,
|
||||
updatedAt: _updatedAt,
|
||||
tool_resources: _tool_resources = {},
|
||||
versions: _versions,
|
||||
__v: _v,
|
||||
...cloneData
|
||||
} = agent;
|
||||
cloneData.name = `${agent.name} (${new Date().toLocaleString('en-US', {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue