fix: modelfile edit

This commit is contained in:
Timothy J. Baek 2024-06-03 13:35:03 -07:00
parent 59a730cb8b
commit 58b5e0bf3e

View File

@ -113,7 +113,11 @@
}
params = { ...params, ...model?.info?.params };
params.stop = params?.stop ? (params?.stop ?? []).join(',') : null;
params.stop = params?.stop
? (typeof params.stop === 'string' ? params.stop.split(',') : params?.stop ?? []).join(
','
)
: null;
if (model?.owned_by === 'openai') {
capabilities.usage = false;