File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11
11
import type { WebSearchUpdate } from " $lib/types/MessageUpdate" ;
12
12
import { browser } from " $app/environment" ;
13
13
import SystemPromptModal from " ../SystemPromptModal.svelte" ;
14
+ import { page } from " $app/stores" ;
14
15
15
16
export let messages: Message [];
16
17
export let loading: boolean ;
44
45
>
45
46
<div class =" mx-auto flex h-full max-w-3xl flex-col gap-6 px-5 pt-6 sm:gap-8 xl:max-w-4xl" >
46
47
{#each messages as message , i }
47
- {#if i === 0 && preprompt }
48
- <SystemPromptModal {preprompt } />
48
+ {#if i === 0 && preprompt !== $page . data . settings . customPrompts [ currentModel . id ] }
49
+ <SystemPromptModal preprompt = {preprompt ?? " " } />
49
50
{/if }
50
51
<ChatMessage
51
52
loading ={loading && i === messages .length - 1 }
You can’t perform that action at this time.
0 commit comments