mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-06 15:36:21 +00:00
feat: app module
This commit is contained in:
@@ -47,7 +47,7 @@ export async function saveChat({
|
||||
modelId,
|
||||
prompts,
|
||||
userId
|
||||
}: Props & { newChatId?: Types.ObjectId; userId: string }) {
|
||||
}: Props & { newChatId?: Types.ObjectId; userId: string }): Promise<{ newChatId: string }> {
|
||||
await connectToDatabase();
|
||||
const { model } = await authModel({ modelId, userId, authOwner: false });
|
||||
|
||||
@@ -104,6 +104,7 @@ export async function saveChat({
|
||||
]);
|
||||
|
||||
return {
|
||||
...response
|
||||
// @ts-ignore
|
||||
newChatId: response?.newChatId || ''
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user