Generate random seed for HF endpoint

e6e8d7726badbe9e93ea2a41cdaa97bba6203fb6

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Showing whitespace changes
public/scripts/textgen-settings.js+1 -1
@@ -1184,7 +1184,7 @@ export function getTextGenGenerationData(finalPrompt, maxTokens, isImpersonate,
11841184 if (settings.type === HUGGINGFACE) {
11851185 params.top_p = Math.min(Math.max(Number(params.top_p), 0.0), 0.999);
11861186 params.stop = Array.isArray(params.stop) ? params.stop.slice(0, 4) : [];
11871187 nonAphroditeParams.seed = settings.seed >= 0 ? settings.seed : undefinedMath.floor(Math.random() * Math.pow(2, 32));
11881188 }
11891189
11901190 if (settings.type === MANCER) {