From 7db21e01593a7e6f9368e4b2c6dd4e6228019615 Mon Sep 17 00:00:00 2001 From: rankaiyx Date: Sun, 8 Mar 2026 21:58:20 +0800 Subject: [PATCH] Add 'copyWithoutThinking' setting to configuration Added a new setting to control copying behavior of assistant messages. --- tools/server/webui/src/lib/constants/settings-config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/server/webui/src/lib/constants/settings-config.ts b/tools/server/webui/src/lib/constants/settings-config.ts index e76fa89e9a..8fa17e8314 100644 --- a/tools/server/webui/src/lib/constants/settings-config.ts +++ b/tools/server/webui/src/lib/constants/settings-config.ts @@ -16,6 +16,7 @@ export const SETTING_CONFIG_DEFAULT: Record = askForTitleConfirmation: false, pasteLongTextToFileLen: 2500, copyTextAttachmentsAsPlainText: false, + copyWithoutThinking: false, pdfAsImage: false, disableAutoScroll: false, renderUserContentAsMarkdown: false, @@ -67,6 +68,8 @@ export const SETTING_CONFIG_INFO: Record = { 'On pasting long text, it will be converted to a file. You can control the file length by setting the value of this parameter. Value 0 means disable.', copyTextAttachmentsAsPlainText: 'When copying a message with text attachments, combine them into a single plain text string instead of a special format that can be pasted back as attachments.', + copyWithoutThinking: + 'When copying an assistant message, strip the thinking/reasoning block and only copy the final response.', samplers: 'The order at which samplers are applied, in simplified way. Default is "top_k;typ_p;top_p;min_p;temperature": top_k->typ_p->top_p->min_p->temperature', backend_sampling: