馃敡 Configurable model name under text input (#81)
Browse files
src/lib/components/chat/ChatWindow.svelte
CHANGED
|
@@ -2,13 +2,12 @@
|
|
| 2 |
import type { Message } from "$lib/types/Message";
|
| 3 |
import { createEventDispatcher } from "svelte";
|
| 4 |
|
| 5 |
-
import CarbonAdd from "~icons/carbon/add";
|
| 6 |
import CarbonSendAltFilled from "~icons/carbon/send-alt-filled";
|
| 7 |
-
import CarbonTextAlignJustify from "~icons/carbon/text-align-justify";
|
| 8 |
|
| 9 |
import ChatMessages from "./ChatMessages.svelte";
|
| 10 |
import ChatInput from "./ChatInput.svelte";
|
| 11 |
import CarbonExport from "~icons/carbon/export";
|
|
|
|
| 12 |
|
| 13 |
export let messages: Message[] = [];
|
| 14 |
export let disabled: boolean = false;
|
|
@@ -48,7 +47,7 @@
|
|
| 48 |
</form>
|
| 49 |
<div class="flex text-xs text-gray-400/80 mt-2 justify-between self-stretch px-1">
|
| 50 |
<p>
|
| 51 |
-
Model:
|
| 52 |
</p>
|
| 53 |
{#if messages.length}
|
| 54 |
<button
|
|
|
|
| 2 |
import type { Message } from "$lib/types/Message";
|
| 3 |
import { createEventDispatcher } from "svelte";
|
| 4 |
|
|
|
|
| 5 |
import CarbonSendAltFilled from "~icons/carbon/send-alt-filled";
|
|
|
|
| 6 |
|
| 7 |
import ChatMessages from "./ChatMessages.svelte";
|
| 8 |
import ChatInput from "./ChatInput.svelte";
|
| 9 |
import CarbonExport from "~icons/carbon/export";
|
| 10 |
+
import { PUBLIC_MODEL_NAME } from "$env/static/public";
|
| 11 |
|
| 12 |
export let messages: Message[] = [];
|
| 13 |
export let disabled: boolean = false;
|
|
|
|
| 47 |
</form>
|
| 48 |
<div class="flex text-xs text-gray-400/80 mt-2 justify-between self-stretch px-1">
|
| 49 |
<p>
|
| 50 |
+
Model: {PUBLIC_MODEL_NAME} 路 Generated content may be inaccurate or false.
|
| 51 |
</p>
|
| 52 |
{#if messages.length}
|
| 53 |
<button
|