mirror of
https://github.com/open-webui/open-webui
synced 2024-11-06 08:56:39 +00:00
fix: modelfile edit
This commit is contained in:
parent
59a730cb8b
commit
58b5e0bf3e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user