Skip to content

Commit a68723c

Browse files
authored
Merge pull request #1125 from MicrosoftDocs/main
10/29/2024 PM Publish
2 parents 506825a + 633ff56 commit a68723c

20 files changed

+636
-172
lines changed

articles/ai-services/content-safety/overview.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,15 @@ Currently, Azure AI Content Safety has an **F0** and **S0** pricing tier. See th
9999

100100
## Service limits
101101

102+
> [!CAUTION]
103+
> **Deprecation Notice**
104+
>
105+
> As part of Content Safety versioning and lifecycle management, we are announcing the deprecation of certain Public Preview and GA versions of our service APIs. Following our deprecation policy:
106+
> * **Public Preview versions**: Each new Public Preview version will trigger the deprecation of the previous preview version after a 90-day period, provided no breaking changes are introduced.
107+
> * **GA versions**: When a new GA version is released, the prior GA version will be deprecated after a 90-day period if compatibility is maintained.
108+
>
109+
> See the [What's new](./whats-new.md) page for upcoming deprecations.
110+
102111
### Input requirements
103112

104113
See the following list for the input requirements for each feature.

articles/ai-services/content-safety/whats-new.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ ms.author: pafarley
1616

1717
Learn what's new in the service. These items might be release notes, videos, blog posts, and other types of information. Bookmark this page to stay up to date with new features, enhancements, fixes, and documentation updates.
1818

19+
## October 2024
20+
21+
### Upcoming deprecations
22+
23+
To align with Content Safety versioning and lifecycle management policies, the following versions are scheduled for deprecation:
24+
* **Effective January 28, 2024**: All versions except `2024-09-01`, `2024-09-15-preview`, and `2024-09-30-preview` will be deprecated and no longer supported. We encourage users to transition to the latest available versions to continue receiving full support and updates. If you have any questions about this process or need assistance with the transition, please reach out to our support team.
25+
1926
## September 2024
2027

2128
### Multimodal analysis (preview)

articles/ai-services/document-intelligence/toc.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ items:
99
href: overview.md
1010
- name: Which model should I choose?
1111
href: concept/choose-model-feature.md
12+
- name: Create a Document Intelligence resource
13+
displayName: endpoint, key, portal
14+
href: how-to-guides/create-document-intelligence-resource.md
1215
- name: Document Intelligence Studio
1316
displayName: get started
1417
href: studio-overview.md
@@ -138,9 +141,9 @@ items:
138141
- name: Custom model lifecycle
139142
displayName: custom, train, modelId, model ID, expiration, train, build
140143
href: train/custom-lifecycle.md
141-
- name: Features
144+
- name: Add-on features
142145
items:
143-
- name: Add-on capabilities
146+
- name: Enhanced capabilities
144147
displayName: extract, formula, font, styles, fontStyle, ocr.highResolution, ocr.formula, high resolution, background color, inline, display
145148
href: concept-add-on-capabilities.md
146149
- name: Query field extraction
@@ -176,9 +179,6 @@ items:
176179
- name: Use Document Intelligence models
177180
displayName: documentAnalysisClient, document analysis client, polygon, boundingPolygon, begin_analyze_document,ormRecognizerClient, Document Intelligence client, boundingBox, box, begin_recognize, v2.1
178181
href: how-to-guides/use-sdk-rest-api.md
179-
- name: Create a Document Intelligence resource
180-
displayName: endpoint, key, portal
181-
href: how-to-guides/create-document-intelligence-resource.md
182182
- name: 🆕 Build and train a custom generative model
183183
displayName: ai studio, neural, template, custom
184184
href: how-to-guides/build-train-custom-generative-model.md

articles/ai-services/openai/dall-e-quickstart.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ zone_pivot_groups: openai-quickstart-dall-e
5454

5555
::: zone-end
5656

57+
::: zone pivot="programming-language-typescript"
58+
59+
[!INCLUDE [TypeScript SDK quickstart](includes/dall-e-typescript.md)]
60+
61+
::: zone-end
62+
5763
::: zone pivot="programming-language-go"
5864

5965
[!INCLUDE [Go SDK quickstart](includes/dall-e-go.md)]

articles/ai-services/openai/gpt-v-quickstart.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ zone_pivot_groups: openai-quickstart-gpt-v
1717

1818
Get started using GPT-4 Turbo with images with the Azure OpenAI Service.
1919

20-
## GPT-4 Turbo model upgrade
21-
22-
[!INCLUDE [GPT-4 Turbo](./includes/gpt-4-turbo.md)]
20+
> [!NOTE]
21+
> **Model choice**
22+
>
23+
> The latest vision-capable models are `gpt-4o` and `gpt-4o mini`. These are in public preview. The latest available GA model is `gpt-4` version `turbo-2024-04-09`.
2324
2425
::: zone pivot="programming-language-studio"
2526

@@ -45,6 +46,12 @@ Get started using GPT-4 Turbo with images with the Azure OpenAI Service.
4546

4647
::: zone-end
4748

49+
::: zone pivot="programming-language-typescript"
50+
51+
[!INCLUDE [TypeScript quickstart](includes/gpt-v-typescript.md)]
52+
53+
::: zone-end
54+
4855
::: zone pivot="programming-language-dotnet"
4956

5057
[!INCLUDE [.NET quickstart](includes/gpt-v-dotnet.md)]

articles/ai-services/openai/includes/dall-e-javascript.md

Lines changed: 23 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.service: azure-ai-openai
88
ms.topic: include
99
author: PatrickFarley
1010
ms.author: pafarley
11-
ms.date: 09/06/2024
11+
ms.date: 10/23/2024
1212
---
1313

1414
Use this guide to get started generating images with the Azure OpenAI SDK for JavaScript.
@@ -17,22 +17,13 @@ Use this guide to get started generating images with the Azure OpenAI SDK for Ja
1717

1818
## Prerequisites
1919

20-
#### [TypeScript](#tab/typescript)
2120

2221
- An Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services?azure-portal=true)
2322
- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule)
24-
- [TypeScript](https://www.typescriptlang.org/download/)
23+
- [Azure CLI](/cli/azure/install-azure-cli) used for passwordless authentication in a local development environment, create the necessary context by signing in with the Azure CLI.
2524
- An Azure OpenAI resource created in a supported region (see [Region availability](/azure/ai-services/openai/concepts/models#model-summary-table-and-region-availability)). For more information, see [Create a resource and deploy a model with Azure OpenAI](../how-to/create-resource.md).
2625

2726

28-
#### [JavaScript](#tab/javascript)
29-
30-
- An Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services?azure-portal=true)
31-
- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule)
32-
- An Azure OpenAI resource created in a supported region (see [Region availability](/azure/ai-services/openai/concepts/models#model-summary-table-and-region-availability)). For more information, see [Create a resource and deploy a model with Azure OpenAI](../how-to/create-resource.md).
33-
34-
---
35-
3627
## Setup
3728

3829
[!INCLUDE [get-key-endpoint](get-key-endpoint.md)]
@@ -62,15 +53,19 @@ Your app's _package.json_ file will be updated with the dependencies.
6253

6354
Create a new file named _ImageGeneration.js_ and open it in your preferred code editor. Copy the following code into the _ImageGeneration.js_ file:
6455

65-
#### [TypeScript](#tab/typescript)
6656

67-
```typescript
68-
import "dotenv/config";
69-
import { AzureOpenAI } from "openai";
57+
58+
#### [Microsoft Entra ID](#tab/javascript-keyless)
59+
60+
```javascript
61+
const { AzureOpenAI } = require("openai");
62+
const {
63+
DefaultAzureCredential,
64+
getBearerTokenProvider
65+
} = require("@azure/identity");
7066

7167
// You will need to set these environment variables or edit the following values
7268
const endpoint = process.env["AZURE_OPENAI_ENDPOINT"];
73-
const apiKey = process.env["AZURE_OPENAI_API_KEY"];
7469

7570
// Required Azure OpenAI deployment name and API version
7671
const apiVersion = "2024-07-01";
@@ -80,10 +75,15 @@ const deploymentName = "dall-e-3";
8075
const prompt = "a monkey eating a banana";
8176
const numberOfImagesToGenerate = 1;
8277

78+
// keyless authentication
79+
const credential = new DefaultAzureCredential();
80+
const scope = "https://cognitiveservices.azure.com/.default";
81+
const azureADTokenProvider = getBearerTokenProvider(credential, scope);
82+
8383
function getClient(): AzureOpenAI {
8484
return new AzureOpenAI({
8585
endpoint,
86-
apiKey,
86+
azureADTokenProvider,
8787
apiVersion,
8888
deployment: deploymentName,
8989
});
@@ -111,23 +111,17 @@ main().catch((err) => {
111111
});
112112
```
113113

114-
1. Build the application with the following command:
115-
116-
```console
117-
tsc
118-
```
114+
Run the script with the following command:
119115

120-
1. Run the application with the following command:
116+
```console
117+
node ImageGeneration.js
118+
```
121119

122-
```console
123-
node ImageGeneration.js
124-
```
125120

126121

127-
#### [JavaScript](#tab/javascript)
122+
#### [API key](#tab/javascript-key)
128123

129124
```javascript
130-
require("dotenv/config");
131125
const { AzureOpenAI } = require("openai");
132126

133127
// You will need to set these environment variables or edit the following values
@@ -178,6 +172,7 @@ Run the script with the following command:
178172
```console
179173
node ImageGeneration.js
180174
```
175+
181176
---
182177

183178
## Output

0 commit comments

Comments
 (0)