Commit 58b5e0bf authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: modelfile edit

parent 59a730cb
...@@ -113,7 +113,11 @@ ...@@ -113,7 +113,11 @@
} }
params = { ...params, ...model?.info?.params }; 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') { if (model?.owned_by === 'openai') {
capabilities.usage = false; capabilities.usage = false;
......
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