mirror of
https://github.com/open-webui/open-webui
synced 2024-11-16 21:42:58 +00:00
fix: advanced params not being applied to ollama
This commit is contained in:
parent
2cd1207e73
commit
890824ced4
@ -863,7 +863,7 @@
|
|||||||
model: model.id,
|
model: model.id,
|
||||||
messages: messagesBody,
|
messages: messagesBody,
|
||||||
options: {
|
options: {
|
||||||
...(params ?? $settings.params ?? {}),
|
...{ ...($settings?.params ?? {}), ...params },
|
||||||
stop:
|
stop:
|
||||||
(params?.stop ?? $settings?.params?.stop ?? undefined)
|
(params?.stop ?? $settings?.params?.stop ?? undefined)
|
||||||
? (params?.stop.split(',').map((token) => token.trim()) ?? $settings.params.stop).map(
|
? (params?.stop.split(',').map((token) => token.trim()) ?? $settings.params.stop).map(
|
||||||
|
Loading…
Reference in New Issue
Block a user