It might be related to this distinction: GPT-4 Turbo now includes a Vision model. This version introduces the ability to utilize JSON mode and function calling in vision requests. The gpt-4-turbo identifier currently refers to this particular version.
I’m uncertain if the inclusion of JSON mode alters its functionality. However, from what I’ve gathered in the documentation, this appears to be the primary difference.
Yeah, so it should definitely still be accepting image inputs. Interestingly, the API call works with the gpt-4-turbo identifier, which is just supposed to be pointing to gpt-4-turbo-2024-04-09. But it doesn’t work with gpt-4-turbo-2024-04-09.
confirmed that model is not supporting standard vision code.
here is example how I do it with the preview model:
def upload_to_gpt_vision(self, file_path, vision_text):
with open(file_path, ‘rb’) as img_file:
image_b64 = base64.b64encode(img_file.read()).decode(‘utf-8’)