coyotte508 HF staff commited on
Commit
8ba05f1
1 Parent(s): 9c68297

🔧 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: OpenAssistant/oasst-sft-1-pythia-12b · Generated content may be inaccurate or false.
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