Skip to content

Commit ceb427c

Browse files
committed
change output format
1 parent 97df52c commit ceb427c

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
## Use Vision enhancement with images
149144

150145
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
231226
"choices":
232227
[
233228
{
234-
"finish_details":
235-
{
236-
"type": "stop",
237-
"stop": "<|fim_suffix|>"
238-
},
229+
"finish_reason":"stop",
239230
"index": 0,
240231
"message":
241232
{
@@ -275,13 +266,11 @@ The chat responses you receive from the model should now include enhanced inform
275266
}
276267
```
277268

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:
279270
- `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.
281272
- `content_filter`: Omitted content due to a flag from our content filters.
282273

283-
If `finish_details.type` is `stop`, then there is another `"stop"` property that specifies the token that caused the output to end.
284-
285274
## Use Vision enhancement with video
286275

287276
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
369358
"choices":
370359
[
371360
{
372-
"finish_details":
373-
{
374-
"type": "stop",
375-
"stop": "<|fim_suffix|>"
376-
},
361+
"finish_reason":"stop",
377362
"index": 0,
378363
"message":
379364
{
@@ -391,13 +376,11 @@ The chat responses you receive from the model should include information about t
391376
}
392377
```
393378

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:
395380
- `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.
397382
- `content_filter`: Omitted content due to a flag from our content filters.
398383

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

403386
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

Comments
 (0)