Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
6e6f9862
Commit
6e6f9862
authored
Aug 05, 2024
by
Timothy J. Baek
Browse files
fix
parent
7d42a791
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/lib/components/chat/Messages/TokenRenderer.svelte
src/lib/components/chat/Messages/TokenRenderer.svelte
+5
-2
No files found.
src/lib/components/chat/Messages/TokenRenderer.svelte
View file @
6e6f9862
...
@@ -4,7 +4,6 @@
...
@@ -4,7 +4,6 @@
import { marked } from 'marked';
import { marked } from 'marked';
import CodeBlock from './CodeBlock.svelte';
import CodeBlock from './CodeBlock.svelte';
import Image from '$lib/components/common/Image.svelte';
import Image from '$lib/components/common/Image.svelte';
import { stringify } from 'postcss';
export let token;
export let token;
export let tokenIdx = 0;
export let tokenIdx = 0;
...
@@ -86,7 +85,11 @@
...
@@ -86,7 +85,11 @@
{:else if codes.length > 0 && part.startsWith('{{@CODE ')}
{:else if codes.length > 0 && part.startsWith('{{@CODE ')}
{@const _code = codes[parseInt(part.match(/{{@CODE (\d+)}}/)[1])]}
{@const _code = codes[parseInt(part.match(/{{@CODE (\d+)}}/)[1])]}
<div class="my-10 -mb-6">
<div class="my-10 -mb-6">
<CodeBlock id={`${id}-${tokenIdx}-${_code.id}`} lang={_code.lang} code={_code.code} />
<CodeBlock
id={`${id}-${tokenIdx}-${_code.id}`}
lang={_code.lang}
code={revertSanitizedResponseContent(_code.code)}
/>
</div>
</div>
{/if}
{/if}
{/each}
{/each}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment