forked from open-webui/open-webui
fix: stop param to list
This commit is contained in:
parent
42f860bbba
commit
e341332527
1 changed files with 3 additions and 1 deletions
|
@ -614,6 +614,7 @@
|
||||||
options.top_p = settings.top_p ?? '';
|
options.top_p = settings.top_p ?? '';
|
||||||
options.num_ctx = settings.num_ctx ?? '';
|
options.num_ctx = settings.num_ctx ?? '';
|
||||||
options = { ...options, ...settings.options };
|
options = { ...options, ...settings.options };
|
||||||
|
options.stop = (settings?.options?.stop ?? []).join(',');
|
||||||
|
|
||||||
titleAutoGenerate = settings.titleAutoGenerate ?? true;
|
titleAutoGenerate = settings.titleAutoGenerate ?? true;
|
||||||
speechAutoSend = settings.speechAutoSend ?? false;
|
speechAutoSend = settings.speechAutoSend ?? false;
|
||||||
|
@ -1051,7 +1052,8 @@
|
||||||
saveSettings({
|
saveSettings({
|
||||||
options: {
|
options: {
|
||||||
seed: (options.seed !== 0 ? options.seed : undefined) ?? undefined,
|
seed: (options.seed !== 0 ? options.seed : undefined) ?? undefined,
|
||||||
stop: options.stop !== '' ? options.stop : undefined,
|
stop:
|
||||||
|
options.stop !== '' ? options.stop.split(',').filter((e) => e) : undefined,
|
||||||
temperature: options.temperature !== '' ? options.temperature : undefined,
|
temperature: options.temperature !== '' ? options.temperature : undefined,
|
||||||
repeat_penalty:
|
repeat_penalty:
|
||||||
options.repeat_penalty !== '' ? options.repeat_penalty : undefined,
|
options.repeat_penalty !== '' ? options.repeat_penalty : undefined,
|
||||||
|
|
Loading…
Reference in a new issue