fix: new params do not require legacy fallback

This commit is contained in:
Timothy J. Baek 2023-12-30 20:18:06 -08:00
parent 0d6440f5c0
commit 14440014e5

View file

@ -652,7 +652,6 @@
options.top_k = settings.top_k ?? ''; options.top_k = settings.top_k ?? '';
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.num_predict = settings.num_predict ?? '';
options = { ...options, ...settings.options }; options = { ...options, ...settings.options };
options.stop = (settings?.options?.stop ?? []).join(','); options.stop = (settings?.options?.stop ?? []).join(',');