Spaces:
Build error
Build error
quick fixes
Browse files- src/lib/components/InferencePlayground/InferencePlayground.svelte +4 -4
- src/lib/components/InferencePlayground/InferencePlaygroundCodeSnippets.svelte +1 -1
- src/lib/components/InferencePlayground/InferencePlaygroundModelSelector.svelte +2 -2
- src/lib/components/InferencePlayground/InferencePlaygroundModelSelectorModal.svelte +1 -1
src/lib/components/InferencePlayground/InferencePlayground.svelte
CHANGED
@@ -170,9 +170,9 @@
|
|
170 |
<div
|
171 |
class="w-dvh grid divide-gray-200 overflow-hidden bg-gray-100/50 max-md:divide-y h-dvh md:grid-cols-[clamp(220px,20%,350px),minmax(0,1fr),clamp(270px,25%,300px)] dark:divide-gray-800 dark:bg-gray-900 dark:text-gray-300 dark:[color-scheme:dark]"
|
172 |
>
|
173 |
-
<div class="
|
174 |
<div
|
175 |
-
class="relative flex flex-1 flex-col gap-6 overflow-y-hidden rounded-r-xl border-x border-y border-gray-200/80 bg-gradient-to-b from-white via-white p-3 shadow-sm dark:border-white/5 dark:from-gray-800/40 dark:via-gray-800/40"
|
176 |
class:pointer-events-none={!systemPromptSupported}
|
177 |
class:opacity-70={!systemPromptSupported}
|
178 |
>
|
@@ -208,7 +208,7 @@
|
|
208 |
on:click={() => (viewSettings = !viewSettings)}
|
209 |
class="md:hidden flex h-[39px] items-center gap-2 rounded-lg border border-gray-200 bg-white px-3 py-2.5 text-sm font-medium text-gray-900 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:outline-none focus:ring-4 focus:ring-gray-100 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white dark:focus:ring-gray-700"
|
210 |
>
|
211 |
-
|
212 |
{!viewSettings ? "Settings" : "Hide Settings"}
|
213 |
</button
|
214 |
>
|
@@ -266,7 +266,7 @@
|
|
266 |
</div>
|
267 |
<div class="flex flex-col p-3 {viewSettings ? 'max-md:fixed' : 'max-md:hidden'} max-md:inset-x-0 max-md:bottom-20 ">
|
268 |
<div
|
269 |
-
class="flex flex-1 flex-col gap-6 overflow-y-hidden rounded-xl border bg-white border-gray-200/80 bg-gradient-to-b from-white via-white p-3 shadow-sm dark:border-white/5 dark:from-gray-800/40 dark:via-gray-800/40"
|
270 |
>
|
271 |
<ModelSelector {models} bind:conversation />
|
272 |
|
|
|
170 |
<div
|
171 |
class="w-dvh grid divide-gray-200 overflow-hidden bg-gray-100/50 max-md:divide-y h-dvh md:grid-cols-[clamp(220px,20%,350px),minmax(0,1fr),clamp(270px,25%,300px)] dark:divide-gray-800 dark:bg-gray-900 dark:text-gray-300 dark:[color-scheme:dark]"
|
172 |
>
|
173 |
+
<div class="flex flex-col overflow-y-auto py-3 max-md:pl-3 pr-3">
|
174 |
<div
|
175 |
+
class="relative flex flex-1 flex-col gap-6 overflow-y-hidden max-md:rounded-xl rounded-r-xl border-x border-y border-gray-200/80 bg-gradient-to-b from-white via-white p-3 shadow-sm dark:border-white/5 dark:from-gray-800/40 dark:via-gray-800/40"
|
176 |
class:pointer-events-none={!systemPromptSupported}
|
177 |
class:opacity-70={!systemPromptSupported}
|
178 |
>
|
|
|
208 |
on:click={() => (viewSettings = !viewSettings)}
|
209 |
class="md:hidden flex h-[39px] items-center gap-2 rounded-lg border border-gray-200 bg-white px-3 py-2.5 text-sm font-medium text-gray-900 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:outline-none focus:ring-4 focus:ring-gray-100 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white dark:focus:ring-gray-700"
|
210 |
>
|
211 |
+
<svg class="text-black dark:text-white" style="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path class="uim-quaternary" d="M20.23 7.24L12 12L3.77 7.24a1.98 1.98 0 0 1 .7-.71L11 2.76c.62-.35 1.38-.35 2 0l6.53 3.77c.29.173.531.418.7.71z" opacity=".25" fill="currentColor"></path><path class="uim-tertiary" d="M12 12v9.5a2.09 2.09 0 0 1-.91-.21L4.5 17.48a2.003 2.003 0 0 1-1-1.73v-7.5a2.06 2.06 0 0 1 .27-1.01L12 12z" opacity=".5" fill="currentColor"></path><path class="uim-primary" d="M20.5 8.25v7.5a2.003 2.003 0 0 1-1 1.73l-6.62 3.82c-.275.13-.576.198-.88.2V12l8.23-4.76c.175.308.268.656.27 1.01z" fill="currentColor"></path></svg>
|
212 |
{!viewSettings ? "Settings" : "Hide Settings"}
|
213 |
</button
|
214 |
>
|
|
|
266 |
</div>
|
267 |
<div class="flex flex-col p-3 {viewSettings ? 'max-md:fixed' : 'max-md:hidden'} max-md:inset-x-0 max-md:bottom-20 ">
|
268 |
<div
|
269 |
+
class="flex flex-1 flex-col gap-6 overflow-y-hidden rounded-xl border bg-white dark:bg-gray-900 border-gray-200/80 bg-gradient-to-b from-white via-white p-3 shadow-sm dark:border-white/5 dark:from-gray-800/40 dark:via-gray-800/40"
|
270 |
>
|
271 |
<ModelSelector {models} bind:conversation />
|
272 |
|
src/lib/components/InferencePlayground/InferencePlaygroundCodeSnippets.svelte
CHANGED
@@ -285,7 +285,7 @@ print(output.choices[0].message)`,
|
|
285 |
}
|
286 |
timeout = setTimeout(() => {
|
287 |
el.classList.remove("text-green-500");
|
288 |
-
},
|
289 |
}}
|
290 |
>
|
291 |
<IconCopyCode /> Copy code
|
|
|
285 |
}
|
286 |
timeout = setTimeout(() => {
|
287 |
el.classList.remove("text-green-500");
|
288 |
+
}, 400);
|
289 |
}}
|
290 |
>
|
291 |
<IconCopyCode /> Copy code
|
src/lib/components/InferencePlayground/InferencePlaygroundModelSelector.svelte
CHANGED
@@ -46,7 +46,7 @@
|
|
46 |
</label>
|
47 |
|
48 |
<button
|
49 |
-
class="flex items-center justify-between gap-6 overflow-hidden whitespace-nowrap rounded-lg border bg-gray-100/80 px-3 py-1.5 leading-tight shadow dark:bg-gray-700"
|
50 |
on:click={() => (showModelPickerModal = true)}
|
51 |
>
|
52 |
<div class="flex flex-col items-start">
|
@@ -58,6 +58,6 @@
|
|
58 |
</div>
|
59 |
<div>{modelName}</div>
|
60 |
</div>
|
61 |
-
<IconCaret classNames="text-xl bg-gray-100 dark:bg-gray-
|
62 |
</button>
|
63 |
</div>
|
|
|
46 |
</label>
|
47 |
|
48 |
<button
|
49 |
+
class="flex items-center justify-between gap-6 overflow-hidden whitespace-nowrap rounded-lg border bg-gray-100/80 px-3 py-1.5 leading-tight shadow dark:bg-gray-800 dark:border-gray-700"
|
50 |
on:click={() => (showModelPickerModal = true)}
|
51 |
>
|
52 |
<div class="flex flex-col items-start">
|
|
|
58 |
</div>
|
59 |
<div>{modelName}</div>
|
60 |
</div>
|
61 |
+
<IconCaret classNames="text-xl bg-gray-100 dark:bg-gray-600 rounded" />
|
62 |
</button>
|
63 |
</div>
|
src/lib/components/InferencePlayground/InferencePlaygroundModelSelectorModal.svelte
CHANGED
@@ -50,7 +50,7 @@
|
|
50 |
bind:this={backdropEl}
|
51 |
on:click|stopPropagation={handleBackdropClick}
|
52 |
>
|
53 |
-
<div class="flex w-full max-w-[600px] items-start justify-center p-10">
|
54 |
<div class="flex h-full w-full flex-col overflow-hidden rounded-lg border bg-white text-gray-900 shadow-md">
|
55 |
<div class="flex items-center border-b px-3">
|
56 |
<IconSearch classNames="mr-2 text-sm" />
|
|
|
50 |
bind:this={backdropEl}
|
51 |
on:click|stopPropagation={handleBackdropClick}
|
52 |
>
|
53 |
+
<div class="flex w-full max-w-[600px] items-start justify-center p-10 whitespace-nowrap overflow-hidden">
|
54 |
<div class="flex h-full w-full flex-col overflow-hidden rounded-lg border bg-white text-gray-900 shadow-md">
|
55 |
<div class="flex items-center border-b px-3">
|
56 |
<IconSearch classNames="mr-2 text-sm" />
|