|
@@ -653,7 +653,32 @@
|
|
{#each files as file, fileIdx}
|
|
{#each files as file, fileIdx}
|
|
<div class=" relative group">
|
|
<div class=" relative group">
|
|
{#if file.type === 'image'}
|
|
{#if file.type === 'image'}
|
|
- <img src={file.url} alt="input" class=" h-16 w-16 rounded-xl object-cover" />
|
|
|
|
|
|
+ <div class="relative">
|
|
|
|
+ <img
|
|
|
|
+ src={file.url}
|
|
|
|
+ alt="input"
|
|
|
|
+ class=" h-16 w-16 rounded-xl object-cover"
|
|
|
|
+ />
|
|
|
|
+ {#if visionCapableState === 'some'}
|
|
|
|
+ <Tooltip
|
|
|
|
+ className=" absolute top-0 left-0"
|
|
|
|
+ content={$i18n.t('A selected model does not support image input')}
|
|
|
|
+ >
|
|
|
|
+ <svg
|
|
|
|
+ xmlns="http://www.w3.org/2000/svg"
|
|
|
|
+ viewBox="0 0 24 24"
|
|
|
|
+ fill="currentColor"
|
|
|
|
+ class="w-6 h-6 fill-yellow-300"
|
|
|
|
+ >
|
|
|
|
+ <path
|
|
|
|
+ fill-rule="evenodd"
|
|
|
|
+ d="M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z"
|
|
|
|
+ clip-rule="evenodd"
|
|
|
|
+ />
|
|
|
|
+ </svg>
|
|
|
|
+ </Tooltip>
|
|
|
|
+ {/if}
|
|
|
|
+ </div>
|
|
{:else if file.type === 'doc'}
|
|
{:else if file.type === 'doc'}
|
|
<div
|
|
<div
|
|
class="h-16 w-[15rem] flex items-center space-x-3 px-2.5 dark:bg-gray-600 rounded-xl border border-gray-200 dark:border-none"
|
|
class="h-16 w-[15rem] flex items-center space-x-3 px-2.5 dark:bg-gray-600 rounded-xl border border-gray-200 dark:border-none"
|