diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte index e18f2f67e..812d79e64 100644 --- a/src/lib/components/chat/MessageInput.svelte +++ b/src/lib/components/chat/MessageInput.svelte @@ -214,7 +214,7 @@ } } catch (e) { // Remove the failed doc from the files array - files = files.filter((f) => f.name !== url); + // files = files.filter((f) => f.name !== url); toast.error(e); } }; diff --git a/src/lib/utils/index.ts b/src/lib/utils/index.ts index fbf183325..bfff8e199 100644 --- a/src/lib/utils/index.ts +++ b/src/lib/utils/index.ts @@ -6,7 +6,17 @@ import sha256 from 'js-sha256'; ////////////////////////// export const sanitizeResponseContent = (content: string) => { - return content + // First, temporarily replace valid