Spaces:
Build error
Build error
fixes (#733)
Browse files
src/lib/components/chat/AssistantIntroduction.svelte
CHANGED
@@ -23,7 +23,7 @@
|
|
23 |
assistant.avatar
|
24 |
}`}
|
25 |
alt="avatar"
|
26 |
-
class="size-16 rounded-full object-cover md:size-32"
|
27 |
/>
|
28 |
{:else}
|
29 |
<div
|
@@ -40,7 +40,7 @@
|
|
40 |
Assistant
|
41 |
</p>
|
42 |
<p class="text-xl font-bold sm:text-2xl">{assistant.name}</p>
|
43 |
-
<p class="text-sm text-gray-500 dark:text-gray-400">
|
44 |
{assistant.description}
|
45 |
</p>
|
46 |
|
@@ -57,7 +57,7 @@
|
|
57 |
{/if}
|
58 |
</div>
|
59 |
</div>
|
60 |
-
<div class="absolute right-
|
61 |
<a
|
62 |
href="{base}/settings/assistants/{assistant._id.toString()}"
|
63 |
class="flex size-7 items-center justify-center rounded-full border bg-gray-200 p-1 text-xs hover:bg-gray-100 dark:border-gray-700 dark:bg-gray-700 dark:hover:bg-gray-600"
|
|
|
23 |
assistant.avatar
|
24 |
}`}
|
25 |
alt="avatar"
|
26 |
+
class="size-16 flex-none rounded-full object-cover md:size-32"
|
27 |
/>
|
28 |
{:else}
|
29 |
<div
|
|
|
40 |
Assistant
|
41 |
</p>
|
42 |
<p class="text-xl font-bold sm:text-2xl">{assistant.name}</p>
|
43 |
+
<p class="text-balance text-sm text-gray-500 dark:text-gray-400">
|
44 |
{assistant.description}
|
45 |
</p>
|
46 |
|
|
|
57 |
{/if}
|
58 |
</div>
|
59 |
</div>
|
60 |
+
<div class="absolute right-3 top-3 md:right-4 md:top-4">
|
61 |
<a
|
62 |
href="{base}/settings/assistants/{assistant._id.toString()}"
|
63 |
class="flex size-7 items-center justify-center rounded-full border bg-gray-200 p-1 text-xs hover:bg-gray-100 dark:border-gray-700 dark:bg-gray-700 dark:hover:bg-gray-600"
|
src/routes/assistant/[assistantId]/+page.svelte
CHANGED
@@ -45,17 +45,17 @@
|
|
45 |
use:clickOutside={() => {
|
46 |
goto(previousPage);
|
47 |
}}
|
48 |
-
class="z-10 flex flex-col content-center items-center gap-x-10 gap-y-2 overflow-hidden rounded-2xl bg-white p-4 text-center shadow-2xl outline-none max-sm:px-6 md:w-96 md:grid-cols-3 md:grid-rows-[auto,1fr] md:p-8"
|
49 |
>
|
50 |
{#if data.assistant.avatar}
|
51 |
<img
|
52 |
-
class="
|
53 |
src="{base}/settings/assistants/{data.assistant._id}/avatar?hash={data.assistant.avatar}"
|
54 |
alt="avatar"
|
55 |
/>
|
56 |
{:else}
|
57 |
<div
|
58 |
-
class="flex
|
59 |
>
|
60 |
{data.assistant.name[0]}
|
61 |
</div>
|
@@ -63,7 +63,7 @@
|
|
63 |
<h1 class="text-2xl font-bold">
|
64 |
{data.assistant.name}
|
65 |
</h1>
|
66 |
-
<h3 class="text-sm text-gray-700">
|
67 |
{data.assistant.description}
|
68 |
</h3>
|
69 |
{#if data.assistant.createdByName}
|
|
|
45 |
use:clickOutside={() => {
|
46 |
goto(previousPage);
|
47 |
}}
|
48 |
+
class="z-10 flex max-w-[90dvw] flex-col content-center items-center gap-x-10 gap-y-2 overflow-hidden rounded-2xl bg-white p-4 text-center shadow-2xl outline-none max-sm:px-6 md:w-96 md:grid-cols-3 md:grid-rows-[auto,1fr] md:p-8"
|
49 |
>
|
50 |
{#if data.assistant.avatar}
|
51 |
<img
|
52 |
+
class="size-16 flex-none rounded-full object-cover sm:size-24"
|
53 |
src="{base}/settings/assistants/{data.assistant._id}/avatar?hash={data.assistant.avatar}"
|
54 |
alt="avatar"
|
55 |
/>
|
56 |
{:else}
|
57 |
<div
|
58 |
+
class="flex size-24 flex-none items-center justify-center rounded-full bg-gray-300 font-bold uppercase text-gray-500"
|
59 |
>
|
60 |
{data.assistant.name[0]}
|
61 |
</div>
|
|
|
63 |
<h1 class="text-2xl font-bold">
|
64 |
{data.assistant.name}
|
65 |
</h1>
|
66 |
+
<h3 class="text-balance text-sm text-gray-700">
|
67 |
{data.assistant.description}
|
68 |
</h3>
|
69 |
{#if data.assistant.createdByName}
|
src/routes/settings/assistants/[assistantId]/+page.svelte
CHANGED
@@ -33,7 +33,7 @@
|
|
33 |
<img
|
34 |
src={`${base}/settings/assistants/${assistant?._id}/avatar?hash=${assistant?.avatar}`}
|
35 |
alt="Avatar"
|
36 |
-
class="
|
37 |
/>
|
38 |
{:else}
|
39 |
<div
|
@@ -115,7 +115,9 @@
|
|
115 |
|
116 |
<h2 class="mt-4 text-lg font-semibold">System Instructions</h2>
|
117 |
|
118 |
-
<textarea
|
|
|
|
|
119 |
>{assistant?.preprompt}</textarea
|
120 |
>
|
121 |
|
|
|
33 |
<img
|
34 |
src={`${base}/settings/assistants/${assistant?._id}/avatar?hash=${assistant?.avatar}`}
|
35 |
alt="Avatar"
|
36 |
+
class="size-16 flex-none rounded-full object-cover sm:size-24"
|
37 |
/>
|
38 |
{:else}
|
39 |
<div
|
|
|
115 |
|
116 |
<h2 class="mt-4 text-lg font-semibold">System Instructions</h2>
|
117 |
|
118 |
+
<textarea
|
119 |
+
disabled
|
120 |
+
class="min-h-[8lh] w-full rounded-lg border-2 border-gray-200 bg-gray-100 p-2 2xl:min-h-[12lh]"
|
121 |
>{assistant?.preprompt}</textarea
|
122 |
>
|
123 |
|