Skip to content

Commit

Permalink
[azopenai] Updates for 2025-01-01-preview. (#24053)
Browse files Browse the repository at this point in the history
* [azopenai] Updates for 2025-01-01-preview.

* Fixes + updated recordings.

* Update sdk/ai/azopenai/CHANGELOG.md

Co-authored-by: Richard Park <[email protected]>

* prep release

* rolling back devcontainer change

---------

Co-authored-by: Richard Park <[email protected]>
  • Loading branch information
glecaros and richardpark-msft authored Feb 5, 2025
1 parent 352c446 commit 45045e9
Show file tree
Hide file tree
Showing 12 changed files with 745 additions and 43 deletions.
35 changes: 29 additions & 6 deletions sdk/ai/azopenai/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,37 @@
# Release History

## 0.7.2 (Unreleased)
## 0.7.2 (2025-02-05)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes
- Updating to support Azure OpenAI API version `2025-01-01-preview`.
- Updated `ChatCompletionsOptions` and `ChatCompletionsStreamOptions`:
- Added `Audio` parameter.
- Added `Metadata` parameter.
- Added `Modalities` parameter.
- Added `Prediction` parameter.
- Added `ReasoningEffort` parameter.
- Added `Store` parameter.
- Added `UserSecurityContext` parameter.
- Added `Audio` field to `ChatResponseMessage`
- Added `AudioOutputParameters` type.
- Added `AudioResponseData` type.
- Updated `CompletionsUsageCompletionTokensDetails`:
- Added `AcceptedPredictionTokens` field.
- Added `AudioTokens` field.
- Added `RejectedPredictionTokens` field.
- Updated `CompletionsUsagePromptTokensDetails`:
- Added `AudioTokens` field.
- Added `InputAudioContent` type.
- Added `ChatRequestDeveloperMessage` type.
- Added `PredictionContent` type.
- Added `UserSecurityContext` type.
- Added `ChatMessageAudioContentItem` type.
- Added `ChatCompletionModality` enum.
- Added `ChatRoleDeveloper` to the `ChatRole` enum.
- Added `InputAudioFormat` enum.
- Added `OutputAudioFormat` enum.
- Added `ReasoningEffortValue` enum.

## 0.7.1 (2024-11-13)

Expand Down
2 changes: 1 addition & 1 deletion sdk/ai/azopenai/assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "go",
"TagPrefix": "go/ai/azopenai",
"Tag": "go/ai/azopenai_ce36c649fa"
"Tag": "go/ai/azopenai_0efed71611"
}
34 changes: 34 additions & 0 deletions sdk/ai/azopenai/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,23 @@ directive:
transform: $["$ref"] = "#/definitions/ChatRequestSystemMessageContent"; return $;
```
Update ChatRequestDeveloperMessage.content to use its custom type.
```yaml
directive:
- from: swagger-document
where: $.definitions
transform: |
$["ChatRequestDeveloperMessageContent"] = {
"x-ms-external": true,
"type": "object", "properties": { "stub": { "type": "string" }}
};
return $;
- from: swagger-document
where: $.definitions.ChatRequestDeveloperMessage.properties.content
transform: $["$ref"] = "#/definitions/ChatRequestDeveloperMessageContent"; return $;
```
Update ChatRequestToolMessage.content to use its custom type.
```yaml
Expand Down Expand Up @@ -787,6 +804,23 @@ directive:
transform: $["$ref"] = "#/definitions/MongoDBChatExtensionParametersEmbeddingDependency"; return $;
```
Update PredictionContent.content to use its custom type.
```yaml
directive:
- from: swagger-document
where: $.definitions
transform: |
$["PredictionContentContent"] = {
"x-ms-external": true,
"type": "object", "properties": { "stub": { "type": "string" }}
};
return $;
- from: swagger-document
where: $.definitions.PredictionContent.properties.content
transform: $["$ref"] = "#/definitions/PredictionContentContent"; return $;
```
\*ChatCompletionsToolChoice
```yaml
Expand Down
54 changes: 27 additions & 27 deletions sdk/ai/azopenai/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 45045e9

Please sign in to comment.