Skip to content

Commit

Permalink
Properly style system prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
Niek committed Apr 12, 2023
1 parent 2d88f4f commit e129fee
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/lib/Messages.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,13 @@
<SvelteMarkdown source={message.content} options={markedownOptions} renderers={{ code: Code, html: Code }}/>
</div>
</article>
{:else if message.role === 'system' || message.role === 'error'}
{:else if message.role === 'system'}
<article class="message is-warning user-message">
<div class="message-body content">
<SvelteMarkdown source={message.content} options={markedownOptions} renderers={{ code: Code, html: Code }}/>
</div>
</article>
{:else if message.role === 'error'}
<article class="message is-danger assistant-message">
<div class="message-body content">
<SvelteMarkdown source={message.content} options={markedownOptions} renderers={{ code: Code, html: Code }}/>
Expand Down

0 comments on commit e129fee

Please sign in to comment.