mirror of
https://github.com/open-webui/open-webui
synced 2025-04-24 08:16:02 +00:00
refac
This commit is contained in:
parent
af2c5f3a18
commit
0a49c366f0
@ -167,15 +167,15 @@
|
|||||||
<Markdown
|
<Markdown
|
||||||
id={`tool-calls-${attributes?.id}-result`}
|
id={`tool-calls-${attributes?.id}-result`}
|
||||||
content={`> \`\`\`json
|
content={`> \`\`\`json
|
||||||
> ${JSON.parse(decode(attributes?.arguments))}
|
> ${JSON.stringify(JSON.parse(JSON.parse(decode(attributes?.arguments))), null, 2)}
|
||||||
> ${JSON.parse(decode(attributes?.result))}
|
> ${JSON.stringify(JSON.parse(JSON.parse(decode(attributes?.result))), null, 2)}
|
||||||
> \`\`\``}
|
> \`\`\``}
|
||||||
/>
|
/>
|
||||||
{:else}
|
{:else}
|
||||||
<Markdown
|
<Markdown
|
||||||
id={`tool-calls-${attributes?.id}-result`}
|
id={`tool-calls-${attributes?.id}-result`}
|
||||||
content={`> \`\`\`json
|
content={`> \`\`\`json
|
||||||
> ${JSON.parse(decode(attributes?.arguments))}
|
> ${JSON.stringify(JSON.parse(JSON.parse(decode(attributes?.arguments))), null, 2)}
|
||||||
> \`\`\``}
|
> \`\`\``}
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
|
Loading…
Reference in New Issue
Block a user