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}" + } } ] }