[GH-ISSUE #11566] the doc should be updated/corrected in openai.md near the OpenAI Python library section #69693

Closed
opened 2026-05-04 18:51:52 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @xz1127 on GitHub (Jul 29, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/11566

the doc has a mistake, and the incorrect example misleads the user.

the "image_url" node must have a child node with a key named "url"

Image

the correct format should :

"messages": [
    {
        "role": "user",
        "content": [
            {
                "type": "text",
                "text": "XXXXX"
            },
            {
                "type": "image_url",
                "image_url": {
                    "url": "data:image/jpeg;base64,XXXX"
                }
            }
        ]
    }
]
Originally created by @xz1127 on GitHub (Jul 29, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/11566 **the doc has a mistake, and the incorrect example misleads the user.** the "image_url" node must have a child node with a key named "url" <img width="1481" height="961" alt="Image" src="https://github.com/user-attachments/assets/fd900389-d7fc-4b11-bc00-a4acdd983147" /> **the correct format should :** "messages": [ { "role": "user", "content": [ { "type": "text", "text": "XXXXX" }, { "type": "image_url", "image_url": { "url": "data:image/jpeg;base64,XXXX" } } ] } ]
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#69693