mirror of
https://github.com/open-webui/open-webui
synced 2024-11-28 23:13:30 +00:00
fix: show both message contents and error message
This commit is contained in:
parent
561778d04d
commit
1cef48730e
@ -453,7 +453,9 @@
|
||||
<div class="w-full">
|
||||
{#if message.content === '' && !message.error}
|
||||
<Skeleton />
|
||||
{:else if !message.error}
|
||||
{:else if message.content && message.error !== true}
|
||||
<!-- always show message contents even if there's an error -->
|
||||
<!-- unless message.error === true which is legacy error handling, where the error message is stored in message.content -->
|
||||
{#each tokens as token, tokenIdx}
|
||||
{#if token.type === 'code'}
|
||||
<CodeBlock
|
||||
|
Loading…
Reference in New Issue
Block a user