|
@@ -8,7 +8,7 @@
|
|
|
const dispatch = createEventDispatcher();
|
|
const dispatch = createEventDispatcher();
|
|
|
|
|
|
|
|
import { config, user, models as _models, temporaryChatEnabled } from '$lib/stores';
|
|
import { config, user, models as _models, temporaryChatEnabled } from '$lib/stores';
|
|
|
- import { sanitizeResponseContent, findWordIndices } from '$lib/utils';
|
|
|
|
|
|
|
+ import { sanitizeResponseContent, extractCurlyBraceWords } from '$lib/utils';
|
|
|
import { WEBUI_BASE_URL } from '$lib/constants';
|
|
import { WEBUI_BASE_URL } from '$lib/constants';
|
|
|
|
|
|
|
|
import Suggestions from './Suggestions.svelte';
|
|
import Suggestions from './Suggestions.svelte';
|
|
@@ -65,9 +65,7 @@
|
|
|
const chatInputElement = document.getElementById('chat-input');
|
|
const chatInputElement = document.getElementById('chat-input');
|
|
|
|
|
|
|
|
if (chatInputContainerElement) {
|
|
if (chatInputContainerElement) {
|
|
|
- chatInputContainerElement.style.height = '';
|
|
|
|
|
- chatInputContainerElement.style.height =
|
|
|
|
|
- Math.min(chatInputContainerElement.scrollHeight, 200) + 'px';
|
|
|
|
|
|
|
+ chatInputContainerElement.scrollTop = chatInputContainerElement.scrollHeight;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
await tick();
|
|
await tick();
|
|
@@ -86,21 +84,21 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$: models = selectedModels.map((id) => $_models.find((m) => m.id === id));
|
|
$: models = selectedModels.map((id) => $_models.find((m) => m.id === id));
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
onMount(() => {});
|
|
onMount(() => {});
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<div class="m-auto w-full max-w-6xl px-2 @2xl:px-20 translate-y-6 py-24 text-center">
|
|
<div class="m-auto w-full max-w-6xl px-2 @2xl:px-20 translate-y-6 py-24 text-center">
|
|
|
{#if $temporaryChatEnabled}
|
|
{#if $temporaryChatEnabled}
|
|
|
- <Tooltip
|
|
|
|
|
- content={$i18n.t('This chat won’t appear in history and your messages will not be saved.')}
|
|
|
|
|
- className="w-full flex justify-center mb-0.5"
|
|
|
|
|
- placement="top"
|
|
|
|
|
- >
|
|
|
|
|
- <div class="flex items-center gap-2 text-gray-500 font-medium text-lg my-2 w-fit">
|
|
|
|
|
- <EyeSlash strokeWidth="2.5" className="size-5" />{$i18n.t('Temporary Chat')}
|
|
|
|
|
- </div>
|
|
|
|
|
- </Tooltip>
|
|
|
|
|
|
|
+ <Tooltip
|
|
|
|
|
+ content={$i18n.t('This chat won’t appear in history and your messages will not be saved.')}
|
|
|
|
|
+ className="w-full flex justify-center mb-0.5"
|
|
|
|
|
+ placement="top"
|
|
|
|
|
+ >
|
|
|
|
|
+ <div class="flex items-center gap-2 text-gray-500 font-medium text-lg my-2 w-fit">
|
|
|
|
|
+ <EyeSlash strokeWidth="2.5" className="size-5" />{$i18n.t('Temporary Chat')}
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </Tooltip>
|
|
|
{/if}
|
|
{/if}
|
|
|
|
|
|
|
|
<div
|
|
<div
|