mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
refactor: simplify image file processing to use provided filenames directly
This commit is contained in:
parent
cf4ef8605d
commit
28d1feacf5
1 changed files with 21 additions and 19 deletions
|
@ -728,8 +728,10 @@ class Coder:
|
|||
return None
|
||||
|
||||
image_messages = []
|
||||
for fname, content in self.get_abs_fnames_content():
|
||||
if is_image_file(fname):
|
||||
for fname in fnames:
|
||||
if not is_image_file(fname):
|
||||
continue
|
||||
|
||||
mime_type, _ = mimetypes.guess_type(fname)
|
||||
if not mime_type:
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue