File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 10
10
import { PUBLIC_APP_DATA_SHARING } from " $env/static/public" ;
11
11
import type { Model } from " $lib/types/Model" ;
12
12
13
- export let settings: Pick < Settings , " shareConversationsWithModelAuthors " > ;
13
+ export let settings: Settings ;
14
14
export let models: Array <Model >;
15
15
16
16
let shareConversationsWithModelAuthors = settings .shareConversationsWithModelAuthors ;
37
37
>
38
38
{#if PUBLIC_APP_DATA_SHARING }
39
39
<label class =" flex cursor-pointer select-none items-center gap-2 text-gray-500" >
40
- {#each Object .entries (settings ).filter (([k ]) => k !== " shareConversationsWithModelAuthors" ) as [key, val]}
40
+ {#each Object .entries (settings ).filter (([k ]) => ! ( k === " shareConversationsWithModelAuthors" || k === " customPrompts " ) ) as [key, val]}
41
41
<input type ="hidden" name ={key } value ={val } />
42
42
{/each }
43
+ <input
44
+ type =" hidden"
45
+ name =" customPrompts"
46
+ value ={JSON .stringify (settings .customPrompts )}
47
+ />
43
48
<Switch
44
49
name =" shareConversationsWithModelAuthors"
45
50
bind:checked ={shareConversationsWithModelAuthors }
You can’t perform that action at this time.
0 commit comments