Skip to content

Commit 9f1cdb3

Browse files
Update tools/server/webui/src/lib/components/app/chat/ChatMessages/ChatMessageAssistant.svelte
Co-authored-by: Aleksander Grygier <[email protected]>
1 parent a773caf commit 9f1cdb3

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tools/server/webui/src/lib/components/app/chat/ChatMessages/ChatMessageAssistant.svelte

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,8 @@
8383
toolCallContent = null
8484
}: Props = $props();
8585
86-
const parsedToolCalls = $derived(() =>
87-
Array.isArray(toolCallContent) ? (toolCallContent as ApiChatCompletionToolCall[]) : null
88-
);
89-
const fallbackToolCallContent = $derived(() =>
90-
typeof toolCallContent === 'string' ? toolCallContent : null
91-
);
86+
const toolCalls = $derived(Array.isArray(toolCallContent) ? (toolCallContent as ApiChatCompletionToolCall[]) : null);
87+
const fallbackToolCalls = $derived(typeof toolCallContent === 'string' ? toolCallContent : null);
9288
9389
const processingState = useProcessingState();
9490
let currentConfig = $derived(config());

0 commit comments

Comments
 (0)