diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte
index 96d7d2e1..2aec58d4 100644
--- a/src/lib/components/chat/MessageInput.svelte
+++ b/src/lib/components/chat/MessageInput.svelte
@@ -145,6 +145,7 @@
name: url,
collection_name: '',
upload_status: false,
+ url: url,
error: ''
};
diff --git a/src/lib/components/chat/Messages/UserMessage.svelte b/src/lib/components/chat/Messages/UserMessage.svelte
index 7bd71205..761ba41c 100644
--- a/src/lib/components/chat/Messages/UserMessage.svelte
+++ b/src/lib/components/chat/Messages/UserMessage.svelte
@@ -82,8 +82,14 @@
{#if file.type === 'image'}
{:else if file.type === 'doc'}
-
{
+ if (file?.url) {
+ window.open(file?.url, '_blank').focus();
+ }
+ }}
>
-
+
{/if}
{/each}
diff --git a/src/lib/components/chat/ModelSelector.svelte b/src/lib/components/chat/ModelSelector.svelte
index c0fed8ea..81304cb4 100644
--- a/src/lib/components/chat/ModelSelector.svelte
+++ b/src/lib/components/chat/ModelSelector.svelte
@@ -58,11 +58,9 @@
class=" self-center {selectedModelIdx === 0
? 'mr-3'
: 'mr-7'} disabled:text-gray-600 disabled:hover:text-gray-600"
- disabled={selectedModels.length === 3 || disabled}
+ {disabled}
on:click={() => {
- if (selectedModels.length < 3) {
- selectedModels = [...selectedModels, ''];
- }
+ selectedModels = [...selectedModels, ''];
}}
>