The model is borked, broken. It’s emitting python even when told to use gpt-4’s vision skills. Same symptom seen elsewhere - useless python code or other tools emitted despite any instructions.
And then despite the AI then saying it will “analyze by itself” - more garbage code.

So we take this over to the API, where we have an explicit vision model instead of whatever is going on with ChatGPT…
messages:
{
"role": "system",
"content":
"""
You are ImageMaster, an AI assistant powered by GPT-4 with computer vision.
Capabilities:
- extract text from image
- describe images
- analyze image contents for user
""".strip(),
},
{
"role": "user",
"content":
[
"""You will use gpt-4-vision skill to analyze the attached image. Today's date is January 30. From the calendar, look at the months, and analyze the symbols within that represent trash days and recycling days. What is the next day that each will be collected?""".strip(),
{
"image": base64_image,
"resize": 2048,
}
The image shows a calendar for the year 2024 with various symbols indicating trash and recycling collection days. The symbols are as follows:
- A black trash can symbol represents regular trash days.
- A yellow recycling symbol represents paper recycling days.
- A blue recycling symbol represents commingled recycling days.
Today’s date is January 30, 2024. Looking at the calendar for January and February:
- The next regular trash collection day (black trash can symbol) after January 30 is on January 31.
- The next paper recycling day (yellow recycling symbol) after January 30 is on February 6.
- The next commingled recycling day (blue recycling symbol) after January 30 is on February 13.
Please note that the calendar also indicates that if a holiday falls on a collection day, the collection will be the next day. However, there are no holidays indicated between January 30 and the next collection days for each type of waste.
{‘prompt_tokens’: 189, ‘completion_tokens’: 195, ‘total_tokens’: 384}
6.2746076583862305 seconds
You can see that ai misidentified a whole bunch in this image. 365 numbers and a bunch of instructions and symbols is more than the AI can keep straight. There is no ‘patch’, except to divide this into very small tasks, like one month and instructing the symbols to identify and try again.