diff --git a/src/routes/(app)/+page.svelte b/src/routes/(app)/+page.svelte index 468ede117..00a7aae34 100644 --- a/src/routes/(app)/+page.svelte +++ b/src/routes/(app)/+page.svelte @@ -519,7 +519,7 @@ .filter((message) => message) .map((message, idx, arr) => ({ role: message.role, - ...(message.files + ...(message.files.filter((file) => file.type === 'image') ? { content: [ { diff --git a/src/routes/(app)/c/[id]/+page.svelte b/src/routes/(app)/c/[id]/+page.svelte index 531259d12..5b08c4c35 100644 --- a/src/routes/(app)/c/[id]/+page.svelte +++ b/src/routes/(app)/c/[id]/+page.svelte @@ -530,7 +530,7 @@ .filter((message) => message) .map((message, idx, arr) => ({ role: message.role, - ...(message.files + ...(message.files.filter((file) => file.type === 'image') ? { content: [ {