Update comment.

This commit is contained in:
frob 2024-04-16 01:12:24 +02:00 committed by GitHub
parent dd623d92c4
commit 2492fade3a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -120,8 +120,8 @@ class OllamaConfig:
and v is not None
}
# ollama wants plain base64 jpeg files as images. strip any leading dataURI
# and convert to jpeg.
# ollama wants plain base64 jpeg/png files as images. strip any leading dataURI
# and convert to jpeg if necessary.
def _convert_image(image):
import base64, io
try: