diff --git a/service/src/index.ts b/service/src/index.ts index a14b843..467c2b3 100644 --- a/service/src/index.ts +++ b/service/src/index.ts @@ -1,6 +1,6 @@ import express from 'express' import type { ChatContext, ChatMessage } from './chatgpt' -import { chatConfig, chatReplyProcess } from './chatgpt' +import { chatConfig, chatReplyProcess, currentModel } from './chatgpt' import { auth } from './middleware/auth' import { isNotEmptyString } from './utils/is' @@ -50,7 +50,7 @@ router.post('/session', async (req, res) => { try { const AUTH_SECRET_KEY = process.env.AUTH_SECRET_KEY const hasAuth = isNotEmptyString(AUTH_SECRET_KEY) - res.send({ status: 'Success', message: '', data: { auth: hasAuth } }) + res.send({ status: 'Success', message: '', data: { auth: hasAuth, model: currentModel() } }) } catch (error) { res.send({ status: 'Fail', message: error.message, data: null }) diff --git a/src/components/common/Setting/About.vue b/src/components/common/Setting/About.vue index 4314415..3edb317 100644 --- a/src/components/common/Setting/About.vue +++ b/src/components/common/Setting/About.vue @@ -1,8 +1,9 @@