From 3d09cbbef8cb40ff900fe577d1ec5d0728b06fb0 Mon Sep 17 00:00:00 2001 From: Yandrik Date: Fri, 2 Feb 2024 13:47:38 +0100 Subject: [PATCH] improvement: added "detail": "high" to image for chatgpt's benefit --- dict_to_anki.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dict_to_anki.py b/dict_to_anki.py index 8b9143d..8f0f83c 100644 --- a/dict_to_anki.py +++ b/dict_to_anki.py @@ -100,7 +100,8 @@ def image_to_anki(image_paths: str | list[str]) -> tuple[str | None, Any]: ] + [{ "type": "image_url", "image_url": { - "url": f"data:image/jpeg;base64,{base64_image}" + "url": f"data:image/jpeg;base64,{base64_image}", + "detail": "high" } } for base64_image in images]