Skip to content

Commit 423e02b

Browse files
[azopenai] Updating to the latest 2023-12-01 API (#22081)
Generating based on the latest swagger for the 2023-12-01 API: - Chat message types for requests and responses are now different, with fields that are relevant to each more clearly called out. For instance, fields relevant to only assistant type messages (like tools) are separated properly. - Strong types for OYD (ie, bring your own data) scenarios, instead of a `any` parameter. - General updates to just expose new features for models like Dall-E Also, improved the tests a bit to handle the fact that we're often going to several different Azure OpenAI instances for different models, developing features, etc...
1 parent 837ae16 commit 423e02b

39 files changed

+4992
-1834
lines changed

eng/config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
},
4747
{
4848
"Name": "azopenai",
49-
"CoverageGoal": 0.34
49+
"CoverageGoal": 0.24
5050
},
5151
{
5252
"Name": "aztemplate",

sdk/ai/azopenai/CHANGELOG.md

+15-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,26 @@
11
# Release History
22

3-
## 0.4.0 (Unreleased)
3+
## 0.4.0 (2023-12-07)
4+
5+
Support for many of the features mentioned in OpenAI's November Dev Day and Microsoft's 2023 Ignite conference
46

57
### Features Added
68

9+
- Chat completions has been extended to accomodate new features:
10+
- Parallel function calling via Tools. See the function `ExampleClient_GetChatCompletions_functions` in `example_client_getchatcompletions_extensions_test.go` for an example of specifying a Tool.
11+
- "JSON mode", via `ChatCompletionOptions.ResponseFormat` for guaranteed function outputs.
12+
- ChatCompletions can now be used with both text and images using `gpt-4-vision-preview`.
13+
- Azure enhancements to `gpt-4-vision-preview` results that include grounding and OCR features
14+
- GetImageGenerations now works with DallE-3.
15+
- `-1106` model feature support for `gpt-35-turbo` and `gpt-4-turbo`, including use of a seed via `ChatCompletionsOptions.Seed` and system fingerprints returned in `ChatCompletions.SystemFingerprint`.
16+
- `dall-e-3` image generation capabilities via `GetImageGenerations`, featuring higher model quality, automatic prompt revisions by `gpt-4`, and customizable quality/style settings
17+
718
### Breaking Changes
819

920
- `azopenai.KeyCredential` has been replaced by [azcore.KeyCredential](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore#KeyCredential).
10-
11-
### Bugs Fixed
12-
13-
### Other Changes
21+
- `Deployment` has been renamed to `DeploymentName` throughout all APIs.
22+
- `CreateImage` has been replaced with `GetImageGenerations`.
23+
- `ChatMessage` has been split into per-role types. The function `ExampleClient_GetChatCompletions` in `example_client_getcompletions_test.go` shows an example of this.
1424

1525
## 0.3.0 (2023-09-26)
1626

sdk/ai/azopenai/assets.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "go",
44
"TagPrefix": "go/ai/azopenai",
5-
"Tag": "go/ai/azopenai_5ce13f37c4"
5+
"Tag": "go/ai/azopenai_9ed7d01267"
66
}

0 commit comments

Comments
 (0)