You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-services/openai/how-to/gpt-with-vision.md
+9-26Lines changed: 9 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -101,10 +101,7 @@ The API response should look like the following.
101
101
],
102
102
"choices": [
103
103
{
104
-
"finish_details": {
105
-
"type": "stop",
106
-
"stop": "<|fim_suffix|>"
107
-
},
104
+
"finish_reason":"stop",
108
105
"index": 0,
109
106
"message": {
110
107
"role": "assistant",
@@ -138,13 +135,11 @@ The API response should look like the following.
138
135
}
139
136
```
140
137
141
-
Every response includes a `"finish_details"` field. The subfield `"type"` has the following possible values:
138
+
Every response includes a `"finish_reason"` field. It has the following possible values:
142
139
-`stop`: API returned complete model output.
143
-
-`max_tokens`: Incomplete model output due to the `max_tokens` input parameter or model's token limit.
140
+
-`length`: Incomplete model output due to the `max_tokens` input parameter or model's token limit.
144
141
-`content_filter`: Omitted content due to a flag from our content filters.
145
142
146
-
If `finish_details.type` is `stop`, then there is another `"stop"` property that specifies the token that caused the output to end.
147
-
148
143
## Use Vision enhancement with images
149
144
150
145
GPT-4 Turbo with Vision provides exclusive access to Azure AI Services tailored enhancements. When combined with Azure AI Vision, it enhances your chat experience by providing the chat model with more detailed information about visible text in the image and the locations of objects.
@@ -231,11 +226,7 @@ The chat responses you receive from the model should now include enhanced inform
231
226
"choices":
232
227
[
233
228
{
234
-
"finish_details":
235
-
{
236
-
"type": "stop",
237
-
"stop": "<|fim_suffix|>"
238
-
},
229
+
"finish_reason":"stop",
239
230
"index": 0,
240
231
"message":
241
232
{
@@ -275,13 +266,11 @@ The chat responses you receive from the model should now include enhanced inform
275
266
}
276
267
```
277
268
278
-
Every response includes a `"finish_details"` field. The subfield `"type"` has the following possible values:
269
+
Every response includes a `"finish_reason"` field. It has the following possible values:
279
270
-`stop`: API returned complete model output.
280
-
-`max_tokens`: Incomplete model output due to the `max_tokens` input parameter or model's token limit.
271
+
-`length`: Incomplete model output due to the `max_tokens` input parameter or model's token limit.
281
272
-`content_filter`: Omitted content due to a flag from our content filters.
282
273
283
-
If `finish_details.type` is `stop`, then there is another `"stop"` property that specifies the token that caused the output to end.
284
-
285
274
## Use Vision enhancement with video
286
275
287
276
GPT-4 Turbo with Vision provides exclusive access to Azure AI Services tailored enhancements. The **video prompt** integration uses Azure AI Vision video retrieval to sample a set of frames from a video and create a transcript of the speech in the video. It enables the AI model to give summaries and answers about video content.
@@ -369,11 +358,7 @@ The chat responses you receive from the model should include information about t
369
358
"choices":
370
359
[
371
360
{
372
-
"finish_details":
373
-
{
374
-
"type": "stop",
375
-
"stop": "<|fim_suffix|>"
376
-
},
361
+
"finish_reason":"stop",
377
362
"index": 0,
378
363
"message":
379
364
{
@@ -391,13 +376,11 @@ The chat responses you receive from the model should include information about t
391
376
}
392
377
```
393
378
394
-
Every response includes a `"finish_details"` field. The subfield `"type"` has the following possible values:
379
+
Every response includes a `"finish_reason"` field. It has the following possible values:
395
380
-`stop`: API returned complete model output.
396
-
-`max_tokens`: Incomplete model output due to the `max_tokens` input parameter or model's token limit.
381
+
-`length`: Incomplete model output due to the `max_tokens` input parameter or model's token limit.
397
382
-`content_filter`: Omitted content due to a flag from our content filters.
398
383
399
-
If `finish_details.type` is `stop`, then there is another `"stop"` property that specifies the token that caused the output to end.
400
-
401
384
## Detail parameter settings in image processing: Low, High, Auto
402
385
403
386
The detail parameter in the model offers three choices: `low`, `high`, or `auto`, to adjust the way the model interprets and processes images. The default setting is auto, where the model decides between low or high based on the size of the image input.
0 commit comments