Skip to content

Commit 03e5e3a

Browse files
committed
fix(image): fix svg attachments 400 error
1 parent 96858d4 commit 03e5e3a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lua/opencode/context.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,6 @@ local function format_file_part(path, prompt)
334334
mime_type = 'image/gif'
335335
elseif ext == 'webp' then
336336
mime_type = 'image/webp'
337-
elseif ext == 'svg' then
338-
mime_type = 'image/svg+xml'
339337
end
340338

341339
local file_part = { filename = rel_path, type = 'file', mime = mime_type, url = 'file://' .. path }

0 commit comments

Comments
 (0)