将3.5模型更换为微软的,进一步节约成本

This commit is contained in:
sijinhui
2024-04-01 18:27:06 +08:00
parent 8ed0fa7504
commit 070f143541
5 changed files with 25 additions and 22 deletions

View File

@@ -78,7 +78,7 @@ export const authOptions: NextAuthOptions = {
async authorize(credential, req) {
const username = cleanUpString(`${credential?.username}`);
// 验证用户名
console.log(credential, username, '==============3')
// console.log(credential, username, '==============3')
// 判断姓名格式是否符合要求,不符合则拒绝
if (username && isName(username)) {
// Any object returned will be saved in `user` property of the JWT
@@ -243,7 +243,7 @@ export async function insertUser(user: {[key: string]: string}) {
data: user
})
} else {
console.log('user==========', existingUser)
// console.log('user==========', existingUser)
return existingUser;
}
} catch (e) {