kk
Browse files
src/app.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
7 |
%sveltekit.head%
|
8 |
</head>
|
9 |
-
<body data-sveltekit-preload-data="hover">
|
10 |
<div style="display: contents">%sveltekit.body%</div>
|
11 |
</body>
|
12 |
</html>
|
|
|
6 |
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
7 |
%sveltekit.head%
|
8 |
</head>
|
9 |
+
<body data-sveltekit-preload-data="hover" class="dark:bg-gray-900">
|
10 |
<div style="display: contents">%sveltekit.body%</div>
|
11 |
</body>
|
12 |
</html>
|
src/lib/components/Playground/PlaygroundMessage.svelte
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
<div
|
16 |
class="@2xl:grid-cols-[130px,1fr,2.5rem] group/message @2xl:gap-4 @2xl:grid-rows-1 group grid grid-cols-[1fr,2.5rem] items-start gap-2 px-6 pb-6 pt-4 hover:bg-gray-50 dark:hover:bg-gray-800/50"
|
17 |
>
|
18 |
-
<div class="@2xl:col-span-1 col-span-2 pb-
|
19 |
{message.role}
|
20 |
</div>
|
21 |
<textarea
|
|
|
15 |
<div
|
16 |
class="@2xl:grid-cols-[130px,1fr,2.5rem] group/message @2xl:gap-4 @2xl:grid-rows-1 group grid grid-cols-[1fr,2.5rem] items-start gap-2 px-6 pb-6 pt-4 hover:bg-gray-50 dark:hover:bg-gray-800/50"
|
17 |
>
|
18 |
+
<div class="@2xl:col-span-1 @2xl:pb-2 col-span-2 pb-1 pt-3 text-sm font-semibold uppercase">
|
19 |
{message.role}
|
20 |
</div>
|
21 |
<textarea
|
src/lib/types/index.d.ts
CHANGED
@@ -3,8 +3,9 @@ type Message = {
|
|
3 |
content: string;
|
4 |
};
|
5 |
|
6 |
-
type Model =
|
7 |
-
|
|
|
8 |
temperature: number;
|
9 |
maxTokens: number;
|
10 |
streaming: boolean;
|
@@ -13,7 +14,7 @@ type Model = {
|
|
13 |
|
14 |
type Conversation = {
|
15 |
id: string;
|
16 |
-
name: string;
|
17 |
model: Model;
|
|
|
18 |
messages: Message[];
|
19 |
};
|
|
|
3 |
content: string;
|
4 |
};
|
5 |
|
6 |
+
type Model = string;
|
7 |
+
|
8 |
+
type ModelConfig = {
|
9 |
temperature: number;
|
10 |
maxTokens: number;
|
11 |
streaming: boolean;
|
|
|
14 |
|
15 |
type Conversation = {
|
16 |
id: string;
|
|
|
17 |
model: Model;
|
18 |
+
config: ModelConfig;
|
19 |
messages: Message[];
|
20 |
};
|