Skip to content

Commit 8dea4e0

Browse files
authored
Replacing azopenai with azopenaiextensions. (Azure#24420)
1 parent 31147ab commit 8dea4e0

File tree

73 files changed

+3417
-17282
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+3417
-17282
lines changed

sdk/ai/azopenai/.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

sdk/ai/azopenai/CHANGELOG.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
# Release History
22

3-
## 0.7.3 (Unreleased)
3+
## 0.8.0 (Unreleased)
44

55
### Features Added
66

77
### Breaking Changes
88

9+
This library has been updated to function as a companion to the [official OpenAI Go client library](https://github.com/openai/openai-go). It provides types and functions that allow interaction with Azure-specific extensions available in the Azure OpenAI service.
10+
11+
See the [migration guide](https://github.com/Azure/azure-sdk-for-go/blob/main/sdk/ai/azopenai/MIGRATION.md) for details on how to update your code to use this library alongside the official OpenAI Go client.
12+
913
### Bugs Fixed
10-
- Fixed a problem that filename would be empty if not explicitly specified in the `UploadFile` operation. (PR#24171)
1114

1215
### Other Changes
1316

17+
- Updating to `v0.1.0-beta.7` of the [OpenAI go module](https://github.com/openai/openai-go).
18+
1419
## 0.7.2 (2025-02-05)
1520

1621
### Features Added

sdk/ai/azopenai/CONTRIBUTING.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
55
This is a contributing guide for the `azopenai` package. For general contributing guidelines refer to [CONTRIBUTING.md](https://github.com/Azure/azure-sdk-for-go/blob/main/CONTRIBUTING.md).
66

7-
The `azopenai` package can be used with either Azure OpenAI or OpenAI's public service. New features are added using our code generation process, specified using TypeSpec [TypeSpec](https://github.com/Microsoft/typespec), which details all the models and protocol methods for using OpenAI.
7+
The `azopenai` package can be used with either Azure OpenAI's public service. New features are added using our code generation process, specified using TypeSpec [TypeSpec](https://github.com/Microsoft/typespec), which details all the models and protocol methods for using OpenAI.
88

99
### Prerequisites
1010

1111
For code fixes that do not require code generation:
12-
- [Supported](https://aka.ms/azsdk/go/supported-versions) version of Go
12+
- Go 1.21 (or greater)
1313

1414
For code generation:
1515
- [NodeJS (use the latest LTS)](https://nodejs.org)
@@ -22,9 +22,7 @@ For code generation:
2222

2323
## Generating from TypeSpec
2424

25-
The `Client` is primarily generated from TypeSpec, with some handwritten code where we've changed the interface to match Azure naming conventions (for instance, we refer to Models as Deployments). Files that do not have `custom` (ex: `client.go`, `models.go`, `models_serde.go`, etc..) are generated.
26-
27-
Files that have `custom` in the name are handwritten (ex: `custom_client_audio.go`), while files that do not (ex: `client.go`, `models.go`, `models_serde.go`, etc..) are generated.
25+
The models in this package generated from TypeSpec. Files that do not have `custom` (ex: `client.go`, `models.go`, `models_serde.go`, etc..) are generated.
2826

2927
### Regeneration
3028

@@ -53,7 +51,7 @@ There are three kinds of tests for this package: unit tests, recorded tests and
5351
5452
## Unit and recorded tests
5553
56-
Unit tests and recorded tests do not require access to OpenAI to run and will run with any PR as a check-in gate.
54+
Unit tests and recorded tests do not require access to OpenAI to run and will run with any PR as a check-in gate.
5755
5856
Recorded tests require the Azure SDK test proxy is running. See the instructions for [installing the test-proxy](https://github.com/Azure/azure-sdk-tools/blob/main/tools/test-proxy/Azure.Sdk.Tools.TestProxy/README.md#installation).
5957
@@ -96,7 +94,7 @@ git push
9694

9795
### Local development
9896

99-
Copy the `sample.env` file to `.env`, and fill out all the values. Each value is documented to give you a general idea of what's needed, but ultimately you'll need to work with the Azure OpenAI SDK team to figure out which services are used for which features.
97+
Copy the `sample.env` file to `.env`, and fill out all the values. Each value is documented to give you a general idea of what's needed, but ultimately you'll need to work with the Azure OpenAI SDK team to figure out which services are used for which features.
10098

10199
Once filled out, the tests will automatically load environment variables from the `.env`:
102100

0 commit comments

Comments
 (0)