From 1be0d34123f5b5839984334f882ba104960b8aae Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sat, 10 Oct 2026 20:18:42 +0400 Subject: [PATCH] refac --- src/lib/components/chat/Settings/General.svelte | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/lib/components/chat/Settings/General.svelte b/src/lib/components/chat/Settings/General.svelte index e240a3b6cd..c309357111 100644 --- a/src/lib/components/chat/Settings/General.svelte +++ b/src/lib/components/chat/Settings/General.svelte @@ -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 {