Skip to content

Commit 3f3d26f

Browse files
yuanzhuangyuanzhuangYuan Zhuang
and
Yuan Zhuang
authored
Remove stream options as the feature is not ready yet (Azure#30087)
Co-authored-by: Yuan Zhuang <[email protected]>
1 parent da1e3d2 commit 3f3d26f

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2024-07-01-preview/inference.json

-15
Original file line numberDiff line numberDiff line change
@@ -3681,9 +3681,6 @@
36813681
"tool_choice": {
36823682
"$ref": "#/components/schemas/chatCompletionToolChoiceOption"
36833683
},
3684-
"stream_options": {
3685-
"$ref": "#/components/schemas/chatCompletionStreamOptions"
3686-
},
36873684
"functions": {
36883685
"description": "Deprecated in favor of `tools`. A list of functions the model may generate JSON inputs for.",
36893686
"type": "array",
@@ -5571,18 +5568,6 @@
55715568
],
55725569
"description": "The role of the author of the response message."
55735570
},
5574-
"chatCompletionStreamOptions": {
5575-
"type": "object",
5576-
"nullable": true,
5577-
"default": null,
5578-
"properties": {
5579-
"include_usage": {
5580-
"type": "boolean",
5581-
"description": "If set, an additional chunk will be streamed before the `data: [DONE]` message. The `usage` field on this chunk shows the token usage statistics for the entire request, and the `choices` field will always be an empty array. All other chunks will also include a `usage` field, but with a null value."
5582-
}
5583-
},
5584-
"description": "Options for streaming response. Only set this when you set `stream: true`."
5585-
},
55865571
"chatCompletionToolChoiceOption": {
55875572
"description": "Controls which (if any) tool is called by the model. `none` means the model will not call any tool and instead generates a message. `auto` means the model can pick between generating a message or calling one or more tools. `required` means the model must call one or more tools. Specifying a particular tool via `{\"type\": \"function\", \"function\": {\"name\": \"my_function\"}}` forces the model to call that tool. `none` is the default when no tools are present. `auto` is the default if tools are present.",
55885573
"oneOf": [

specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2024-07-01-preview/inference.yaml

-13
Original file line numberDiff line numberDiff line change
@@ -2304,8 +2304,6 @@ components:
23042304
type: boolean
23052305
nullable: true
23062306
default: false
2307-
stream_options:
2308-
$ref: '#/components/schemas/chatCompletionStreamOptions'
23092307
stop:
23102308
description: Up to 4 sequences where the API will stop generating further tokens.
23112309
oneOf:
@@ -3674,17 +3672,6 @@ components:
36743672
enum:
36753673
- assistant
36763674
description: The role of the author of the response message.
3677-
chatCompletionStreamOptions:
3678-
description: |
3679-
Options for streaming response. Only set this when you set `stream: true`.
3680-
type: object
3681-
nullable: true
3682-
default: null
3683-
properties:
3684-
include_usage:
3685-
type: boolean
3686-
description: |
3687-
If set, an additional chunk will be streamed before the `data: [DONE]` message. The `usage` field on this chunk shows the token usage statistics for the entire request, and the `choices` field will always be an empty array. All other chunks will also include a `usage` field, but with a null value.
36883675
chatCompletionToolChoiceOption:
36893676
description: |
36903677
Controls which (if any) tool is called by the model.

0 commit comments

Comments
 (0)