Skip to content

Commit

Permalink
v2.19.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Dooy committed Aug 2, 2024
1 parent 882620c commit 4b33a50
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion service/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ router.post('/session', async (req, res) => {
const visionModel= process.env.VISION_MODEL??""
const systemMessage= process.env.SYSTEM_MESSAGE??""
const customVisionModel= process.env.CUSTOM_VISION_MODELS??""
const isHk= (process.env.OPENAI_API_BASE_URL??"").toLocaleLowerCase().indexOf('-hk')>0
let isHk= (process.env.OPENAI_API_BASE_URL??"").toLocaleLowerCase().indexOf('-hk')>0
if(!isHk) isHk= (process.env.LUMA_SERVER??"").toLocaleLowerCase().indexOf('-hk')>0
if(!isHk) isHk= (process.env.VIGGLE_SERVER??"").toLocaleLowerCase().indexOf('-hk')>0


const data= { disableGpt4,isWsrv,uploadImgSize,theme,isCloseMdPreview,uploadType,
notify , baiduId, googleId,isHideServer,isUpload, auth: hasAuth
Expand Down

0 comments on commit 4b33a50

Please sign in to comment.