mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 12:55:19 +00:00
Merge pull request #2705 from cheahjs/fix/show-both-error-and-content
fix: show both message contents and error message
This commit is contained in:
commit
d2cbb14ebf
1 changed files with 3 additions and 1 deletions
|
|
@ -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 a new issue