Remove db.advancedBotSettings in request.ts (#597)

# PR Checklist
- [ ] Did you check if it works normally in all models? *ignore this
when it dosen't uses models*
- [ ] Did you check if it works normally in all of web, local and node
hosted versions? if it dosen't, did you blocked it in those versions?
- [ ] Did you added a type def?

# Description
I think db.advancedBotSettings is code that should have been deleted,
but was not accidentally removed.
This commit is contained in:
kwaroran
2024-08-24 19:55:30 +09:00
committed by GitHub

View File

@@ -131,7 +131,7 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
let useStreaming = db.useStreaming && arg.useStreaming
arg.continue = arg.continue ?? false
let biasString = arg.biasString ?? []
const aiModel = (model === 'model' || (!db.advancedBotSettings)) ? db.aiModel : db.subModel
const aiModel = model === 'model' ? db.aiModel : db.subModel
const multiGen = (db.genTime > 1 && aiModel.startsWith('gpt') && (!arg.continue)) && (!arg.noMultiGen)
let raiModel = aiModel