mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
lint
This commit is contained in:
parent
e6bf5d8f48
commit
3baf2db6c9
1 changed files with 1 additions and 1 deletions
|
@ -654,7 +654,7 @@ class Coder:
|
|||
for fname, content in self.get_abs_fnames_content():
|
||||
if is_image_file(fname):
|
||||
with open(fname, "rb") as image_file:
|
||||
encoded_string = base64.b64encode(image_file.read()).decode('utf-8')
|
||||
encoded_string = base64.b64encode(image_file.read()).decode("utf-8")
|
||||
mime_type, _ = mimetypes.guess_type(fname)
|
||||
if mime_type and mime_type.startswith("image/"):
|
||||
image_url = f"data:{mime_type};base64,{encoded_string}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue