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
## Detail parameter settings in image processing: Low, High, Auto
149
144
150
145
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.
@@ -239,11 +234,7 @@ The chat responses you receive from the model should now include enhanced inform
239
234
"choices":
240
235
[
241
236
{
242
-
"finish_details":
243
-
{
244
-
"type": "stop",
245
-
"stop": "<|fim_suffix|>"
246
-
},
237
+
"finish_reason":"stop",
247
238
"index": 0,
248
239
"message":
249
240
{
@@ -283,13 +274,11 @@ The chat responses you receive from the model should now include enhanced inform
283
274
}
284
275
```
285
276
286
-
Every response includes a `"finish_details"` field. The subfield `"type"` has the following possible values:
277
+
Every response includes a `"finish_reason"` field. It has the following possible values:
287
278
-`stop`: API returned complete model output.
288
-
-`max_tokens`: Incomplete model output due to the `max_tokens` input parameter or model's token limit.
279
+
-`length`: Incomplete model output due to the `max_tokens` input parameter or model's token limit.
289
280
-`content_filter`: Omitted content due to a flag from our content filters.
290
281
291
-
If `finish_details.type` is `stop`, then there is another `"stop"` property that specifies the token that caused the output to end.
292
-
293
282
## Use Vision enhancement with video
294
283
295
284
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.
@@ -377,11 +366,7 @@ The chat responses you receive from the model should include information about t
377
366
"choices":
378
367
[
379
368
{
380
-
"finish_details":
381
-
{
382
-
"type": "stop",
383
-
"stop": "<|fim_suffix|>"
384
-
},
369
+
"finish_reason":"stop",
385
370
"index": 0,
386
371
"message":
387
372
{
@@ -399,13 +384,11 @@ The chat responses you receive from the model should include information about t
399
384
}
400
385
```
401
386
402
-
Every response includes a `"finish_details"` field. The subfield `"type"` has the following possible values:
387
+
Every response includes a `"finish_reason"` field. It has the following possible values:
403
388
-`stop`: API returned complete model output.
404
-
-`max_tokens`: Incomplete model output due to the `max_tokens` input parameter or model's token limit.
389
+
-`length`: Incomplete model output due to the `max_tokens` input parameter or model's token limit.
405
390
-`content_filter`: Omitted content due to a flag from our content filters.
406
391
407
-
If `finish_details.type` is `stop`, then there is another `"stop"` property that specifies the token that caused the output to end.
408
-
409
392
### Pricing example for Video prompts
410
393
The pricing for GPT-4 Turbo with Vision is dynamic and depends on the specific features and inputs used. For a comprehensive view of Azure OpenAI pricing see [Azure OpenAI Pricing](https://azure.microsoft.com/pricing/details/cognitive-services/openai-service/).
0 commit comments