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
fe968586
"...composable_kernel_onnxruntime.git" did not exist on "ddd49ec9e7f829c3a4ca92de22206c708d8d94a7"
Commit
fe968586
authored
Jun 15, 2024
by
Timothy J. Baek
Browse files
enh: model desc md support
parent
dfa2cf9e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
+13
-3
src/app.css
src/app.css
+4
-0
src/lib/components/chat/Messages/Placeholder.svelte
src/lib/components/chat/Messages/Placeholder.svelte
+6
-2
src/lib/components/common/Tooltip.svelte
src/lib/components/common/Tooltip.svelte
+3
-1
No files found.
src/app.css
View file @
fe968586
...
...
@@ -28,6 +28,10 @@ math {
@apply
rounded-lg;
}
.markdown
a
{
@apply
underline;
}
ol
>
li
{
counter-increment
:
list-number
;
display
:
block
;
...
...
src/lib/components/chat/Messages/Placeholder.svelte
View file @
fe968586
<script lang="ts">
import { WEBUI_BASE_URL } from '$lib/constants';
import { marked } from 'marked';
import { config, user, models as _models } from '$lib/stores';
import { onMount, getContext } from 'svelte';
...
...
@@ -65,8 +67,10 @@
<div in:fade={{ duration: 200, delay: 200 }}>
{#if models[selectedModelIdx]?.info?.meta?.description ?? null}
<div class="mt-0.5 text-base font-normal text-gray-500 dark:text-gray-400 line-clamp-3">
{models[selectedModelIdx]?.info?.meta?.description}
<div
class="mt-0.5 text-base font-normal text-gray-500 dark:text-gray-400 line-clamp-3 markdown"
>
{@html marked.parse(models[selectedModelIdx]?.info?.meta?.description)}
</div>
{#if models[selectedModelIdx]?.info?.meta?.user}
<div class="mt-0.5 text-sm font-normal text-gray-400 dark:text-gray-500">
...
...
src/lib/components/common/Tooltip.svelte
View file @
fe968586
<script lang="ts">
import { onDestroy } from 'svelte';
import { marked } from 'marked';
import tippy from 'tippy.js';
export let placement = 'top';
...
...
@@ -15,7 +17,7 @@
tooltipInstance.setContent(content);
} else {
tooltipInstance = tippy(tooltipElement, {
content: content,
content:
marked.parse(
content
)
,
placement: placement,
allowHTML: true,
touch: touch
...
...
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