Skip to content

Commit 32188e2

Browse files
committed
[UI] [owl] Fix tool call step formatting ; Replace Chevron with Sparkle for "Thought for X seconds" (#844)
- [UI] Replace Chevron with Sparkle for "Thought for X seconds" - [Backend] Fix tool call step formatting: Add double new lines
1 parent 8d2586b commit 32188e2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

services/api/src/owl/utils/lm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ async def _openai_responses_stream(
669669
yield self._stream_delta(
670670
Delta(
671671
role="assistant",
672-
reasoning_content=f'Searched the web for "{chunk.item.action.query}".',
672+
reasoning_content=f'\n\nSearched the web for "{chunk.item.action.query}".',
673673
)
674674
)
675675
yield self._stream_delta(Delta(role="assistant", reasoning_content="\n\n"))
@@ -679,7 +679,7 @@ async def _openai_responses_stream(
679679
yield self._stream_delta(
680680
Delta(
681681
role="assistant",
682-
reasoning_content=f"Ran Python code:\n\n```python\n{code_snippet}\n```",
682+
reasoning_content=f"\n\nRan Python code:\n\n```python\n{code_snippet}\n```",
683683
)
684684
)
685685
yield self._stream_delta(Delta(role="assistant", reasoning_content="\n\n"))

services/app/src/lib/components/output-details/OutputDetails.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script lang="ts">
22
import { page } from '$app/state';
3-
import { ChevronRight } from '@lucide/svelte';
3+
import { Sparkle } from '@lucide/svelte';
44
import converter from '$lib/showdown';
55
import { chatCitationPattern } from '$lib/constants';
66
import { citationReplacer } from '$lib/utils';
@@ -144,7 +144,7 @@
144144
<div class="flex h-1 grow flex-col items-center gap-2 overflow-auto px-8 py-4">
145145
{#if showOutputDetails.reasoningTime}
146146
<div class="mb-2 flex select-none items-center gap-2 self-start text-sm text-[#667085]">
147-
<ChevronRight size={16} />
147+
<Sparkle size={16} />
148148
Thought for {showOutputDetails.reasoningTime.toFixed()} second{Number(
149149
showOutputDetails.reasoningTime.toFixed()
150150
) > 1

0 commit comments

Comments
 (0)