victor HF Staff commited on
Commit
fb4d41c
·
1 Parent(s): d70276d

Hide 'content' key in tool update outputs

Browse files
src/lib/components/chat/ToolUpdate.svelte CHANGED
@@ -204,7 +204,7 @@
204
  <ul class="py-1 text-sm">
205
  {#each update.result.outputs as output}
206
  {#each Object.entries(output) as [key, value]}
207
- {#if value != null}
208
  <li>
209
  <span class="font-semibold">{key}</span>:
210
  <span class="whitespace-pre-wrap">{formatValue(value)}</span>
 
204
  <ul class="py-1 text-sm">
205
  {#each update.result.outputs as output}
206
  {#each Object.entries(output) as [key, value]}
207
+ {#if value != null && key !== "content"}
208
  <li>
209
  <span class="font-semibold">{key}</span>:
210
  <span class="whitespace-pre-wrap">{formatValue(value)}</span>