[fix] seed

This commit is contained in:
kwaroran
2023-11-08 14:52:50 +09:00
parent cc5b69a816
commit c31f3dffe6

View File

@@ -206,10 +206,11 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
frequency_penalty: arg.frequencyPenalty || (db.frequencyPenalty / 100),
logit_bias: bias,
stream: false,
seed: db.generationSeed
seed: db.generationSeed || -1
})
if(body.seed === -1){
body.seed = db.generationSeed
if(body.seed === -1 || (!body.seed) || (body.seed < 0)){
delete body.seed
}