From c96b7dc2ca963a96dd5538d6fd158870aa261122 Mon Sep 17 00:00:00 2001 From: Kye Date: Sat, 9 Mar 2024 19:00:49 -0800 Subject: [PATCH] [SEND .PY] --- scripts/send.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/send.py b/scripts/send.py index 3714443..b3914d1 100644 --- a/scripts/send.py +++ b/scripts/send.py @@ -21,7 +21,6 @@ def image_to_base64(image_path): } } -# Construct the request data # Construct the request data request_data = { "model": "cogvlm-chat-17b", @@ -35,7 +34,9 @@ def image_to_base64(image_path): }, { "type": "image_url", - "url": "https://images.pexels.com/photos/1108099/pexels-photo-1108099.jpeg" + "image_url": { + "url": f"data:image/jpeg;base64,{base64_image}" + } } ] }