- {#if message.content === '' && !message.error}
-
- {:else if message.content && message.error !== true}
-
-
- {#each tokens as token, tokenIdx}
- {#if token.type === 'code'}
- {#if token.lang === 'mermaid'}
-
{revertSanitizedResponseContent(token.text)}
- {:else}
-
- {/if}
- {:else if token.type === 'paragraph'}
- {#if token.tokens}
- {#each token.tokens as inlineToken}
- {#if inlineToken.type === 'image'}
-
- {:else}
- {@html marked.parse(inlineToken.raw, {
- ...defaults,
- gfm: true,
- breaks: true,
- renderer
- })}
- {/if}
- {/each}
- {:else}
- {@html marked.parse(token.raw, {
- ...defaults,
- gfm: true,
- breaks: true,
- renderer
- })}
- {/if}
- {:else}
- {@html marked.parse(token.raw, {
- ...defaults,
- gfm: true,
- breaks: true,
- renderer
- })}
- {/if}
- {/each}
- {/if}
+ {/if}
- {#if message.error}
-
-
+ {#if !edit}
+ {#if message.done || siblings.length > 1}
+
+ {#if siblings.length > 1}
+
+
+
+
+ {siblings.indexOf(message.id) + 1}/{siblings.length}
+
+
+
+
+ {/if}
+
+ {#if message.done}
+ {#if !readOnly}
+
+
+
+ {/if}
+
+
+
+
+
+
+
+
+
+ {#if $config?.features.enable_image_generation && !readOnly}
+
+
+
+ {/if}
+
+ {#if message.info}
+
+
+
+ {/if}
+
+ {#if !readOnly}
+
+
+
+
+
+
+
+
+ {#if isLastMessage}
+
-
+
- {#if $config?.features.enable_image_generation && !readOnly}
-
+ {#each model?.actions ?? [] as action}
+
- {/if}
-
- {#if message.info}
-
-
-
- {/if}
-
- {#if !readOnly}
-
-
-
-
-
-
-
-
- {#if isLastMessage}
-
-
-
-
-
-
-
-
- {#each model?.actions ?? [] as action}
-
-
-
- {/each}
- {/if}
- {/if}
+ {/each}
{/if}
-
- {/if}
-
- {#if message.done && showRateComment}
- {
- updateChatMessages();
- }}
- />
+ {/if}
{/if}
{/if}
-