Skip to content

Commit 3f5af48

Browse files
Merge pull request #262147 from PatrickFarley/openai-gptnext
change output format
2 parents 2ad7e93 + 4ca7cbc commit 3f5af48

File tree

1 file changed

+9
-26
lines changed

1 file changed

+9
-26
lines changed

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

Lines changed: 9 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,7 @@ The API response should look like the following.
101101
],
102102
"choices": [
103103
{
104-
"finish_details": {
105-
"type": "stop",
106-
"stop": "<|fim_suffix|>"
107-
},
104+
"finish_reason":"stop",
108105
"index": 0,
109106
"message": {
110107
"role": "assistant",
@@ -138,13 +135,11 @@ The API response should look like the following.
138135
}
139136
```
140137

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:
142139
- `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.
144141
- `content_filter`: Omitted content due to a flag from our content filters.
145142

146-
If `finish_details.type` is `stop`, then there is another `"stop"` property that specifies the token that caused the output to end.
147-
148143
## Detail parameter settings in image processing: Low, High, Auto
149144

150145
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
239234
"choices":
240235
[
241236
{
242-
"finish_details":
243-
{
244-
"type": "stop",
245-
"stop": "<|fim_suffix|>"
246-
},
237+
"finish_reason":"stop",
247238
"index": 0,
248239
"message":
249240
{
@@ -283,13 +274,11 @@ The chat responses you receive from the model should now include enhanced inform
283274
}
284275
```
285276

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:
287278
- `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.
289280
- `content_filter`: Omitted content due to a flag from our content filters.
290281

291-
If `finish_details.type` is `stop`, then there is another `"stop"` property that specifies the token that caused the output to end.
292-
293282
## Use Vision enhancement with video
294283

295284
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
377366
"choices":
378367
[
379368
{
380-
"finish_details":
381-
{
382-
"type": "stop",
383-
"stop": "<|fim_suffix|>"
384-
},
369+
"finish_reason":"stop",
385370
"index": 0,
386371
"message":
387372
{
@@ -399,13 +384,11 @@ The chat responses you receive from the model should include information about t
399384
}
400385
```
401386

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:
403388
- `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.
405390
- `content_filter`: Omitted content due to a flag from our content filters.
406391

407-
If `finish_details.type` is `stop`, then there is another `"stop"` property that specifies the token that caused the output to end.
408-
409392
### Pricing example for Video prompts
410393
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/).
411394

0 commit comments

Comments
 (0)