Skip to content

Commit dd83a78

Browse files
Missing securitySchemes section added in 2024-05-01-preview AzureOpenAI spec (#29210)
1 parent 1bf1fa2 commit dd83a78

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11056,6 +11056,24 @@
1105611056
],
1105711057
"description": "Occurs when a stream ends."
1105811058
}
11059+
},
11060+
"securitySchemes": {
11061+
"bearer": {
11062+
"type": "oauth2",
11063+
"flows": {
11064+
"implicit": {
11065+
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/v2.0/authorize",
11066+
"scopes": {}
11067+
}
11068+
},
11069+
"x-tokenInfoFunc": "api.middleware.auth.bearer_auth",
11070+
"x-scopeValidateFunc": "api.middleware.auth.validate_scopes"
11071+
},
11072+
"apiKey": {
11073+
"type": "apiKey",
11074+
"name": "api-key",
11075+
"in": "header"
11076+
}
1105911077
}
1106011078
}
1106111079
}

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7511,3 +7511,16 @@ components:
75117511
- event
75127512
- data
75137513
description: Occurs when a stream ends.
7514+
securitySchemes:
7515+
bearer:
7516+
type: oauth2
7517+
flows:
7518+
implicit:
7519+
authorizationUrl: https://login.microsoftonline.com/common/oauth2/v2.0/authorize
7520+
scopes: {}
7521+
x-tokenInfoFunc: api.middleware.auth.bearer_auth
7522+
x-scopeValidateFunc: api.middleware.auth.validate_scopes
7523+
apiKey:
7524+
type: apiKey
7525+
name: api-key
7526+
in: header

0 commit comments

Comments
 (0)