"test/vscode:/vscode.git/clone" did not exist on "671f24be50c30bec8263f2ce3d22e899ac4ef662"
Commit e3413325 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: stop param to list

parent 42f860bb
......@@ -614,6 +614,7 @@
options.top_p = settings.top_p ?? '';
options.num_ctx = settings.num_ctx ?? '';
options = { ...options, ...settings.options };
options.stop = (settings?.options?.stop ?? []).join(',');
titleAutoGenerate = settings.titleAutoGenerate ?? true;
speechAutoSend = settings.speechAutoSend ?? false;
......@@ -1051,7 +1052,8 @@
saveSettings({
options: {
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,
repeat_penalty:
options.repeat_penalty !== '' ? options.repeat_penalty : undefined,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment