Fix maxTokens reference for n_predict alias

This commit is contained in:
Cohee 2024-01-12 12:20:03 +02:00
parent 8659bd57b7
commit 1367642eb4
1 changed files with 1 additions and 1 deletions

View File

@ -765,7 +765,7 @@ export function getTextGenGenerationData(finalPrompt, maxTokens, isImpersonate,
'repeat_penalty': settings.rep_pen, 'repeat_penalty': settings.rep_pen,
'tfs_z': settings.tfs, 'tfs_z': settings.tfs,
'repeat_last_n': settings.rep_pen_range, 'repeat_last_n': settings.rep_pen_range,
'n_predict': settings.maxTokens, 'n_predict': maxTokens,
'mirostat': settings.mirostat_mode, 'mirostat': settings.mirostat_mode,
'ignore_eos': settings.ban_eos_token, 'ignore_eos': settings.ban_eos_token,
}; };