layout
Browse files
src/lib/components/Playground/Playground.svelte
CHANGED
@@ -312,5 +312,45 @@
|
|
312 |
bind:jsonMode
|
313 |
bind:streaming
|
314 |
/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
315 |
</div>
|
316 |
</div>
|
|
|
312 |
bind:jsonMode
|
313 |
bind:streaming
|
314 |
/>
|
315 |
+
<div
|
316 |
+
class="mt-auto flex max-w-xs flex-col items-start gap-2.5 rounded-lg border bg-white p-4 text-gray-500 shadow dark:border-gray-800 dark:bg-gray-800/50 dark:text-gray-400"
|
317 |
+
role="alert"
|
318 |
+
>
|
319 |
+
<span class="text-sm font-semibold text-gray-900 dark:text-white">Get more usage</span>
|
320 |
+
<div class="text-sm font-normal">Larger models, x10 quota, and advanced features.</div>
|
321 |
+
<a
|
322 |
+
href="#"
|
323 |
+
class="inline-flex rounded-lg bg-black px-2.5 py-1.5 text-center text-xs font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-4 focus:ring-blue-300 dark:hover:bg-black dark:focus:ring-blue-800"
|
324 |
+
>Get PRO ($9/month)</a
|
325 |
+
>
|
326 |
+
</div>
|
327 |
+
<!-- <div
|
328 |
+
class="flex max-w-xs flex-col items-start gap-2.5 rounded-lg border bg-white p-4 text-gray-500 shadow dark:bg-gray-800 dark:text-gray-400"
|
329 |
+
role="alert"
|
330 |
+
>
|
331 |
+
<span class="text-sm font-semibold text-gray-900 dark:text-white">Deploy dedicated</span>
|
332 |
+
<div class="text-sm font-normal">Deploy your own production ready endpoint</div>
|
333 |
+
<a
|
334 |
+
href="#"
|
335 |
+
class="inline-flex rounded-lg bg-black px-2.5 py-1.5 text-center text-xs font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-4 focus:ring-blue-300 dark:hover:bg-black dark:focus:ring-blue-800"
|
336 |
+
>Deploy dedicated</a
|
337 |
+
>
|
338 |
+
</div> -->
|
339 |
+
<div>
|
340 |
+
<div class="mb-3 flex items-center justify-between gap-2">
|
341 |
+
<label for="default-range" class="block text-sm font-medium text-gray-900 dark:text-white"
|
342 |
+
>API Quota</label
|
343 |
+
>
|
344 |
+
<span
|
345 |
+
class="rounded bg-gray-100 px-1.5 py-0.5 text-xs font-medium text-gray-800 dark:bg-gray-700 dark:text-gray-300"
|
346 |
+
>Free</span
|
347 |
+
>
|
348 |
+
|
349 |
+
<div class="ml-auto w-12 text-right text-sm">76%</div>
|
350 |
+
</div>
|
351 |
+
<div class="h-2 w-full rounded-full bg-gray-200 dark:bg-gray-700">
|
352 |
+
<div class="h-2 rounded-full bg-black dark:bg-gray-400" style="width: 75%"></div>
|
353 |
+
</div>
|
354 |
+
</div>
|
355 |
</div>
|
356 |
</div>
|
src/lib/components/Playground/PlaygroundOptions.svelte
CHANGED
@@ -7,21 +7,19 @@
|
|
7 |
</script>
|
8 |
|
9 |
<div>
|
10 |
-
<
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
{
|
21 |
-
|
22 |
-
|
23 |
-
</select>
|
24 |
-
</div>
|
25 |
</div>
|
26 |
<div>
|
27 |
<div class="flex items-center justify-between">
|
@@ -91,43 +89,3 @@
|
|
91 |
></div>
|
92 |
</label>
|
93 |
</div>
|
94 |
-
<div
|
95 |
-
class="mt-auto flex max-w-xs flex-col items-start gap-2.5 rounded-lg border bg-white p-4 text-gray-500 shadow dark:border-gray-800 dark:bg-gray-800/50 dark:text-gray-400"
|
96 |
-
role="alert"
|
97 |
-
>
|
98 |
-
<span class="text-sm font-semibold text-gray-900 dark:text-white">Get more usage</span>
|
99 |
-
<div class="text-sm font-normal">Larger models, x10 quota, and advanced features.</div>
|
100 |
-
<a
|
101 |
-
href="#"
|
102 |
-
class="inline-flex rounded-lg bg-black px-2.5 py-1.5 text-center text-xs font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-4 focus:ring-blue-300 dark:hover:bg-black dark:focus:ring-blue-800"
|
103 |
-
>Get PRO ($9/month)</a
|
104 |
-
>
|
105 |
-
</div>
|
106 |
-
<!-- <div
|
107 |
-
class="flex max-w-xs flex-col items-start gap-2.5 rounded-lg border bg-white p-4 text-gray-500 shadow dark:bg-gray-800 dark:text-gray-400"
|
108 |
-
role="alert"
|
109 |
-
>
|
110 |
-
<span class="text-sm font-semibold text-gray-900 dark:text-white">Deploy dedicated</span>
|
111 |
-
<div class="text-sm font-normal">Deploy your own production ready endpoint</div>
|
112 |
-
<a
|
113 |
-
href="#"
|
114 |
-
class="inline-flex rounded-lg bg-black px-2.5 py-1.5 text-center text-xs font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-4 focus:ring-blue-300 dark:hover:bg-black dark:focus:ring-blue-800"
|
115 |
-
>Deploy dedicated</a
|
116 |
-
>
|
117 |
-
</div> -->
|
118 |
-
<div>
|
119 |
-
<div class="mb-3 flex items-center justify-between gap-2">
|
120 |
-
<label for="default-range" class="block text-sm font-medium text-gray-900 dark:text-white"
|
121 |
-
>API Quota</label
|
122 |
-
>
|
123 |
-
<span
|
124 |
-
class="rounded bg-gray-100 px-1.5 py-0.5 text-xs font-medium text-gray-800 dark:bg-gray-700 dark:text-gray-300"
|
125 |
-
>Free</span
|
126 |
-
>
|
127 |
-
|
128 |
-
<div class="ml-auto w-12 text-right text-sm">76%</div>
|
129 |
-
</div>
|
130 |
-
<div class="h-2 w-full rounded-full bg-gray-200 dark:bg-gray-700">
|
131 |
-
<div class="h-2 rounded-full bg-black dark:bg-gray-400" style="width: 75%"></div>
|
132 |
-
</div>
|
133 |
-
</div>
|
|
|
7 |
</script>
|
8 |
|
9 |
<div>
|
10 |
+
<label
|
11 |
+
for="countries"
|
12 |
+
class="mb-2 flex items-baseline text-sm font-medium text-gray-900 dark:text-white"
|
13 |
+
>Models<span class="ml-4 font-normal text-gray-400">{compatibleModels.length}</span>
|
14 |
+
</label>
|
15 |
+
<select
|
16 |
+
bind:value={currentModel}
|
17 |
+
class="block w-full rounded-lg border border-gray-300 bg-gray-50 p-2.5 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500"
|
18 |
+
>
|
19 |
+
{#each compatibleModels as model}
|
20 |
+
<option value={model}>{model}</option>
|
21 |
+
{/each}
|
22 |
+
</select>
|
|
|
|
|
23 |
</div>
|
24 |
<div>
|
25 |
<div class="flex items-center justify-between">
|
|
|
89 |
></div>
|
90 |
</label>
|
91 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
src/lib/types/index.d.ts
ADDED
File without changes
|