Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OpenAI] Stable v2 #31469

Merged
merged 5 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions sdk/openai/openai/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
# Release History

## 2.0.0-beta.4 (Unreleased)
## 2.0.0 (2024-11-18)

### Features Added
This release marks the first stable library version for `@azure/openai` and it exposes Azure-exclusive features supported in the latest Azure OpenAI Service stable `api-version` label of `2024-10-21`.

### Breaking Changes
The following features are supported in this release:

### Bugs Fixed
- Azure OpenAI On Your Data which enables you to run advanced AI models, without needing to train or fine-tune models, on your own enterprise data located in an Azure Search index or in an vector store in Azure Cosmos DB.
- Azure OpenAI content filtering which detects and prevents the output of harmful content.

### Other Changes
### Breaking Changes

- Models related to features still in preview have been removed.

## 2.0.0-beta.3 (2024-11-05)

Expand Down
2 changes: 1 addition & 1 deletion sdk/openai/openai/MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Migrated code:
```typescript
import { AzureOpenAI } from "openai";
const deployment = "Your Azure OpenAI deployment";
const apiVersion = "2024-08-01-preview";
const apiVersion = "2024-10-21";
const options = { azureADTokenProvider, deployment, apiVersion }
const client = new AzureOpenAI(options);
```
Expand Down
6 changes: 3 additions & 3 deletions sdk/openai/openai/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ There are several ways to authenticate with the Azure OpenAI service and the rec
import { AzureOpenAI } from "openai";

const deployment = "Your deployment name";
const apiVersion = "2024-08-01-preview";
const apiVersion = "2024-10-21";
const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion });
```

Expand Down Expand Up @@ -126,7 +126,7 @@ export async function main() {
const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope);
const deployment = "gpt-4-1106-preview";
const apiVersion = "2024-08-01-preview";
const apiVersion = "2024-10-21";
const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion });
const events = await client.chat.completions.create({
stream: true,
Expand Down Expand Up @@ -182,7 +182,7 @@ async function main() {
const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope);
const deployment = "gpt-35-turbo";
const apiVersion = "2024-08-01-preview";
const apiVersion = "2024-10-21";
const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion });
const events = await client.chat.completions.create({
messages: [
Expand Down
2 changes: 1 addition & 1 deletion sdk/openai/openai/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@azure/openai",
"version": "2.0.0-beta.4",
"version": "2.0.0",
"description": "A companion library to openai for Azure OpenAI.",
"sdk-type": "client",
"main": "./dist/commonjs/index.js",
Expand Down
Loading
Loading