mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-11 03:38:02 +00:00
refac
This commit is contained in:
parent
0a50954090
commit
1be0d34123
1 changed files with 5 additions and 3 deletions
|
|
@ -81,6 +81,7 @@
|
|||
}
|
||||
if (canEditParams) {
|
||||
updated.params = {
|
||||
...$settings.params,
|
||||
stream_response: params.stream_response !== null ? params.stream_response : undefined,
|
||||
stream_delta_chunk_size:
|
||||
params.stream_delta_chunk_size !== null ? params.stream_delta_chunk_size : undefined,
|
||||
|
|
@ -115,9 +116,10 @@
|
|||
think: params.think !== null ? params.think : undefined,
|
||||
keep_alive: params.keep_alive !== null ? params.keep_alive : undefined,
|
||||
format: params.format !== null ? params.format : undefined,
|
||||
...(params.custom_params && Object.keys(params.custom_params).length > 0
|
||||
? { custom_params: params.custom_params }
|
||||
: {})
|
||||
custom_params:
|
||||
params.custom_params && Object.keys(params.custom_params).length > 0
|
||||
? params.custom_params
|
||||
: undefined
|
||||
};
|
||||
}
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue