feat: quote source
This commit is contained in:
@@ -27,7 +27,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
||||
},
|
||||
{
|
||||
$set: {
|
||||
'content.$.quote.$[quoteElem].isEdit': true
|
||||
'content.$.quote.$[quoteElem].source': '手动修改'
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -58,11 +58,7 @@ export async function saveChat({
|
||||
obj: item.obj,
|
||||
value: item.value,
|
||||
systemPrompt: item.systemPrompt,
|
||||
quote:
|
||||
item.quote?.map((item) => ({
|
||||
...item,
|
||||
isEdit: false
|
||||
})) || []
|
||||
quote: item.quote || []
|
||||
}));
|
||||
|
||||
const [id] = await Promise.all([
|
||||
|
||||
Reference in New Issue
Block a user