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