From 62dbc9f654a9b53a2108e96727e55f994f392db1 Mon Sep 17 00:00:00 2001 From: Aleksander Grygier Date: Wed, 31 Dec 2025 13:08:26 +0100 Subject: [PATCH] feat: Raw LLM output switch per message --- .../app/chat/ChatMessages/ChatMessageAssistant.svelte | 4 ++-- .../lib/components/app/chat/ChatSettings/ChatSettings.svelte | 2 +- tools/server/webui/src/lib/constants/settings-config.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/server/webui/src/lib/components/app/chat/ChatMessages/ChatMessageAssistant.svelte b/tools/server/webui/src/lib/components/app/chat/ChatMessages/ChatMessageAssistant.svelte index 5ade6895bd..4c8f46021b 100644 --- a/tools/server/webui/src/lib/components/app/chat/ChatMessages/ChatMessageAssistant.svelte +++ b/tools/server/webui/src/lib/components/app/chat/ChatMessages/ChatMessageAssistant.svelte @@ -83,7 +83,7 @@ // Check if content contains agentic tool call markers const isAgenticContent = $derived( - messageContent?.includes('') ?? false + messageContent?.includes('<<>>') ?? false ); const processingState = useProcessingState(); @@ -261,7 +261,7 @@ {onConfirmDelete} {onNavigateToSibling} {onShowDeleteDialogChange} - showRawOutputSwitch={currentConfig.showRawOutputSwitch} + showRawOutputSwitch={currentConfig.disableReasoningFormat} rawOutputEnabled={showRawOutput} onRawOutputToggle={(enabled) => (showRawOutput = enabled)} /> diff --git a/tools/server/webui/src/lib/components/app/chat/ChatSettings/ChatSettings.svelte b/tools/server/webui/src/lib/components/app/chat/ChatSettings/ChatSettings.svelte index 9b5ed4e841..9323bbd797 100644 --- a/tools/server/webui/src/lib/components/app/chat/ChatSettings/ChatSettings.svelte +++ b/tools/server/webui/src/lib/components/app/chat/ChatSettings/ChatSettings.svelte @@ -273,7 +273,7 @@ fields: [ { key: 'disableReasoningFormat', - label: 'Show raw LLM output', + label: 'Enable raw LLM output switch', type: 'checkbox' }, { diff --git a/tools/server/webui/src/lib/constants/settings-config.ts b/tools/server/webui/src/lib/constants/settings-config.ts index a100a6e69e..15d8a351f6 100644 --- a/tools/server/webui/src/lib/constants/settings-config.ts +++ b/tools/server/webui/src/lib/constants/settings-config.ts @@ -94,7 +94,7 @@ export const SETTING_CONFIG_INFO: Record = { custom: 'Custom JSON parameters to send to the API. Must be valid JSON format.', showThoughtInProgress: 'Expand thought process by default when generating messages.', disableReasoningFormat: - 'Show raw LLM output without backend parsing and frontend Markdown rendering to inspect streaming across different models.', + 'Enable raw LLM output switch to show unprocessed model output without backend parsing and frontend Markdown rendering to inspect streaming across different models.', keepStatsVisible: 'Keep processing statistics visible after generation finishes.', showMessageStats: 'Display generation statistics (tokens/second, token count, duration) below each assistant message.',