Skip to content

Commit

Permalink
Use artifact encoding for images
Browse files Browse the repository at this point in the history
  • Loading branch information
collindutter committed Sep 10, 2024
1 parent c53a573 commit 52bd7f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion griptape/artifacts/image_artifact.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ImageArtifact(BlobArtifact):

@property
def base64(self) -> str:
return base64.b64encode(self.value).decode("utf-8")
return base64.b64encode(self.value).decode(self.encoding)

@property
def mime_type(self) -> str:
Expand Down

0 comments on commit 52bd7f2

Please sign in to comment.