Unify cfgValues parsing between ooba/Novel

This commit is contained in:
Cohee
2023-08-23 18:26:56 +03:00
parent 2c2a68ef76
commit f48cc0db31
3 changed files with 22 additions and 30 deletions

View File

@ -234,10 +234,6 @@ async function generateTextGenWithStreaming(generate_data, signal) {
}
export function getTextGenGenerationData(finalPrompt, this_amount_gen, isImpersonate, cfgValues) {
if (cfgValues?.guidanceScale?.value === 1) {
cfgValues = null;
}
return {
'prompt': finalPrompt,
'max_new_tokens': this_amount_gen,