|
@@ -1,5 +1,8 @@
|
|
|
<script lang="ts">
|
|
|
+ import DOMPurify from 'dompurify';
|
|
|
+
|
|
|
import { toast } from 'svelte-sonner';
|
|
|
+
|
|
|
import { v4 as uuidv4 } from 'uuid';
|
|
|
import { createPicker, getAuthToken } from '$lib/utils/google-drive-picker';
|
|
|
import { pickAndDownloadFile } from '$lib/utils/onedrive-file-picker';
|
|
@@ -595,7 +598,7 @@
|
|
|
/>
|
|
|
{:else}
|
|
|
<form
|
|
|
- class="w-full flex gap-1.5"
|
|
|
+ class="w-full flex flex-col gap-1.5"
|
|
|
on:submit|preventDefault={() => {
|
|
|
// check if selectedModels support image input
|
|
|
dispatch('submit', prompt);
|
|
@@ -1520,6 +1523,14 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
+ {#if $config?.license_metadata?.input_footer}
|
|
|
+ <div class=" text-xs text-gray-500 text-center line-clamp-1">
|
|
|
+ {@html DOMPurify.sanitize($config?.license_metadata?.input_footer)}
|
|
|
+ </div>
|
|
|
+ {:else}
|
|
|
+ <div class="mb-1" />
|
|
|
+ {/if}
|
|
|
</form>
|
|
|
{/if}
|
|
|
</div>
|