@@ -61,11 +61,11 @@ Create a new Python file named _quickstart.py_. Open the new file in your prefer
61
61
endpoint = f " { base_url} /chat/completions?api-version=2023-12-01-preview "
62
62
data = {
63
63
" messages" : [
64
- { " role" : " system" , " content" : " You are a helpful assistant." }, # Content can be a string, OR
65
- { " role" : " user" , " content" : [ # It can be an array containing strings and images.
66
- " Describe this picture:" ,
67
- { " image " : " <base_64_encoded_image> " } # Images are represented like this.
68
- ] }
64
+ { " role" : " system" , " content" : " You are a helpful assistant." },
65
+ { " role" : " user" , " content" : [
66
+ { " type " : " text " , " text " : " Describe this picture:" } ,
67
+ { " type " : " image_url " , " url " : " <URL or base-64-encoded image> " }
68
+ ] }
69
69
],
70
70
" max_tokens" : 100
71
71
}
@@ -136,11 +136,11 @@ The **object grounding** integration brings a new layer to data analysis and use
136
136
}
137
137
}],
138
138
" messages" : [
139
- { " role" : " system" , " content" : " You are a helpful assistant." }, # Content can be a string, OR
140
- { " role" : " user" , " content" : [ # It can be an array containing strings and images.
141
- " Describe this picture:" ,
142
- { " image " : " <base_64_encoded_image> " } # Images are represented like this.
143
- ]}
139
+ { " role" : " system" , " content" : " You are a helpful assistant." },
140
+ { " role" : " user" , " content" : [
141
+ { " type " : " text " , " text " : " Describe this picture:" } ,
142
+ { " type " : " image_url " , " url " : " <URL or base-64-encoded image> " }
143
+ ]}
144
144
],
145
145
" max_tokens" : 100
146
146
}
0 commit comments