mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-16 14:03:43 +08:00
将3.5模型更换为微软的,进一步节约成本
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user