Spaces:
Runtime error
Runtime error
Commit ·
9761c08
1
Parent(s): 65df4d4
Replace customPrompts with activePersona and personas array in settings store
Browse files
src/lib/stores/settings.ts
CHANGED
|
@@ -5,12 +5,15 @@ import { UrlDependency } from "$lib/types/UrlDependency";
|
|
| 5 |
import { getContext, setContext } from "svelte";
|
| 6 |
import { type Writable, writable, get } from "svelte/store";
|
| 7 |
|
|
|
|
|
|
|
| 8 |
type SettingsStore = {
|
| 9 |
shareConversationsWithModelAuthors: boolean;
|
| 10 |
welcomeModalSeen: boolean;
|
| 11 |
welcomeModalSeenAt: Date | null;
|
| 12 |
activeModel: string;
|
| 13 |
-
|
|
|
|
| 14 |
multimodalOverrides: Record<string, boolean>;
|
| 15 |
recentlySaved: boolean;
|
| 16 |
disableStream: boolean;
|
|
|
|
| 5 |
import { getContext, setContext } from "svelte";
|
| 6 |
import { type Writable, writable, get } from "svelte/store";
|
| 7 |
|
| 8 |
+
import type { Persona } from "$lib/types/Persona";
|
| 9 |
+
|
| 10 |
type SettingsStore = {
|
| 11 |
shareConversationsWithModelAuthors: boolean;
|
| 12 |
welcomeModalSeen: boolean;
|
| 13 |
welcomeModalSeenAt: Date | null;
|
| 14 |
activeModel: string;
|
| 15 |
+
activePersona: string;
|
| 16 |
+
personas: Persona[];
|
| 17 |
multimodalOverrides: Record<string, boolean>;
|
| 18 |
recentlySaved: boolean;
|
| 19 |
disableStream: boolean;
|