perrf chat不请求余额

This commit is contained in:
archer
2023-03-31 14:13:00 +08:00
parent df9ac99ef2
commit a3d74ec4a6
5 changed files with 17 additions and 11 deletions

View File

@@ -35,7 +35,10 @@ export const authChat = async (chatId: string, authorization?: string) => {
}
// 获取 user 的 apiKey
const { user, userApiKey, systemKey } = await getOpenApiKey(chat.userId as unknown as string);
const { user, userApiKey, systemKey } = await getOpenApiKey(
chat.userId as unknown as string,
false
);
// filter 掉被 deleted 的内容
chat.content = chat.content.filter((item) => item.deleted !== true);