mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-29 09:44:47 +00:00
head ,csv template and limit content size
This commit is contained in:
@@ -35,12 +35,13 @@ export async function saveChat({
|
||||
|
||||
if (chatHistory) {
|
||||
promise.push(
|
||||
Chat.findOneAndUpdate(
|
||||
Chat.updateOne(
|
||||
{ chatId, userId },
|
||||
{
|
||||
$push: {
|
||||
content: {
|
||||
$each: content
|
||||
$each: content,
|
||||
$slice: -50
|
||||
}
|
||||
},
|
||||
title: content[0].value.slice(0, 20),
|
||||
|
Reference in New Issue
Block a user