Skip to content

Commit e2ac280

Browse files
committed
match oai input format
1 parent d790e8b commit e2ac280

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

articles/ai-services/openai/how-to/gpt-with-vision.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ The following is a sample request body. The format is the same as the chat compl
5454
},
5555
{
5656
"type": "image_url",
57-
"image_url": "<URL or base-64-encoded image>"
57+
"image_url": {
58+
"url": "<URL or base-64-encoded image>"
59+
}
5860
}
5961
]
6062
}
@@ -204,7 +206,9 @@ You must also include the `enhancements` and `dataSources` objects. `enhancement
204206
},
205207
{
206208
"type": "image_url",
207-
"image_url": "<URL or base-64-encoded image>"
209+
"image_url": {
210+
"url":"<URL or base-64-encoded image>"
211+
}
208212
}
209213
]
210214
}

articles/ai-services/openai/includes/gpt-v-rest.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,10 @@ Create a new Python file named _quickstart.py_. Open the new file in your prefer
6868
"text": "Describe this picture:"
6969
},
7070
{
71-
"type": "image_url",
72-
"image_url": "<URL or base 64 encoded image>" # Can url or data url with base64 image string
71+
"type": "image_url",
72+
"image_url": {
73+
"url": "<URL or base 64 encoded image>"
74+
}
7375
}
7476
] }
7577
],
@@ -150,7 +152,9 @@ The **object grounding** integration brings a new layer to data analysis and use
150152
},
151153
{
152154
"type": "image_url",
153-
"image_url": "<URL or base 64 encoded image>" # Can be url or data url with base64 image string
155+
"image_url": {
156+
"url" : "<URL or base 64 encoded image>"
157+
}
154158
}
155159
]}
156160
],

0 commit comments

Comments
 (0)