mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-02 20:58:12 +00:00
feat: 复制和删除对话功能
This commit is contained in:
@@ -51,6 +51,9 @@ export const authChat = async (chatId: string, authorization?: string) => {
|
||||
return Promise.reject('该账号余额不足');
|
||||
}
|
||||
|
||||
// filter 掉被 deleted 的内容
|
||||
chat.content = chat.content.filter((item) => item.deleted !== true);
|
||||
|
||||
return {
|
||||
userApiKey,
|
||||
systemKey: process.env.OPENAIKEY as string,
|
||||
|
Reference in New Issue
Block a user