Skip to content

Commit 6b97dc6

Browse files
committed
Merge branch 'main' into release-preview-health-ai-models
2 parents 388fafb + e077e11 commit 6b97dc6

37 files changed

+301
-306
lines changed

articles/ai-services/document-intelligence/versioning/v3-1-migration-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Starting from v3.0, [Document Intelligence REST API](../quickstarts/get-started-
131131
132132
## Changes to the REST API endpoints
133133

134-
The v3.1 REST API combines the analysis operations for layout analysis, prebuilt models, and custom models into a single pair of operations by assigning **`documentModels`** and **`modelId`** to the layout analysis (../prebuilt-layout) and prebuilt models.
134+
The v3.1 REST API combines the analysis operations for layout analysis, prebuilt models, and custom models into a single pair of operations by assigning **`documentModels`** and **`modelId`** to the [layout analysis](../prebuilt/layout.md) and prebuilt models.
135135

136136
### POST request
137137

articles/ai-services/openai/how-to/batch.md

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -157,71 +157,6 @@ Yes. Similar to other deployment types, you can create content filters and assoc
157157

158158
Yes, from the quota page in the Studio UI. Default quota allocation can be found in the [quota and limits article](../quotas-limits.md#global-batch-quota).
159159

160-
### How do I tell how many tokens my batch request contains, and how many tokens are available as quota?
161-
162-
The `2024-10-01-preview` REST API adds two new response headers:
163-
164-
* `deployment-enqueued-tokens` - A approximate token count for your jsonl file calculated immediately after the batch request is submitted. This value represents an estimate based on the number of characters and is not the true token count.
165-
* `deployment-maximum-enqueued-tokens` The total available enqueued tokens available for this global batch model deployment.
166-
167-
These response headers are only available when making a POST request to begin batch processing of a file with the REST API. The language specific client libraries do not currently return these new response headers. To return all response headers you can add `-i` to the standard REST request.
168-
169-
```http
170-
curl -i -X POST https://YOUR_RESOURCE_NAME.openai.azure.com/openai/batches?api-version=2024-10-01-preview \
171-
-H "api-key: $AZURE_OPENAI_API_KEY" \
172-
-H "Content-Type: application/json" \
173-
-d '{
174-
"input_file_id": "file-abc123",
175-
"endpoint": "/chat/completions",
176-
"completion_window": "24h"
177-
}'
178-
```
179-
180-
```output
181-
HTTP/1.1 200 OK
182-
Content-Length: 619
183-
Content-Type: application/json; charset=utf-8
184-
Vary: Accept-Encoding
185-
Request-Context: appId=
186-
x-ms-response-type: standard
187-
deployment-enqueued-tokens: 139
188-
deployment-maximum-enqueued-tokens: 740000
189-
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
190-
X-Content-Type-Options: nosniff
191-
x-aml-cluster: vienna-swedencentral-01
192-
x-request-time: 2.125
193-
apim-request-id: c8bf4351-c6f5-4bfe-9a79-ef3720eca8af
194-
x-ms-region: Sweden Central
195-
Date: Thu, 17 Oct 2024 01:45:45 GMT
196-
197-
{
198-
"cancelled_at": null,
199-
"cancelling_at": null,
200-
"completed_at": null,
201-
"completion_window": "24h",
202-
"created_at": 1729129545,
203-
"error_file_id": null,
204-
"expired_at": null,
205-
"expires_at": 1729215945,
206-
"failed_at": null,
207-
"finalizing_at": null,
208-
"id": "batch_c8dd49a7-c808-4575-9957-b188cd0dd642",
209-
"in_progress_at": null,
210-
"input_file_id": "file-f89384af0082485da43cb26b49dc25ce",
211-
"errors": null,
212-
"metadata": null,
213-
"object": "batch",
214-
"output_file_id": null,
215-
"request_counts": {
216-
"total": 0,
217-
"completed": 0,
218-
"failed": 0
219-
},
220-
"status": "validating",
221-
"endpoint": "/chat/completions"
222-
}
223-
```
224-
225160
### What happens if the API doesn't complete my request within the 24 hour time frame?
226161

227162
We aim to process these requests within 24 hours; we don't expire the jobs that take longer. You can cancel the job anytime. When you cancel the job, any remaining work is cancelled and any already completed work is returned. You'll be charged for any completed work.

articles/ai-services/openai/how-to/code-interpreter.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ services: cognitive-services
66
manager: nitinme
77
ms.service: azure-ai-openai
88
ms.topic: how-to
9-
ms.date: 05/20/2024
10-
author: mrbullwinkle
11-
ms.author: mbullwin
9+
ms.date: 10/15/2024
10+
author: aahill
11+
ms.author: aahi
1212
recommendations: false
1313

1414
---
1515

1616
# Azure OpenAI Assistants Code Interpreter (Preview)
1717

18-
Code Interpreter allows the Assistants API to write and run Python code in a sandboxed execution environment. With Code Interpreter enabled, your Assistant can run code iteratively to solve more challenging code, math, and data analysis problems. When your Assistant writes code that fails to run, it can iterate on this code by modifying and running different code until the code execution succeeds.
18+
Code Interpreter allows the Assistants API to write and run Python code in a sandboxed execution environment. With Code Interpreter enabled, your Assistant can run code iteratively to solve more challenging code, math, and data analysis problems. When your Assistant writes code that fails to run, it can iterate on this code by modifying and running different code until the code execution succeeds.
1919

2020
> [!IMPORTANT]
2121
> Code Interpreter has [additional charges](https://azure.microsoft.com/pricing/details/cognitive-services/openai-service/) beyond the token based fees for Azure OpenAI usage. If your Assistant calls Code Interpreter simultaneously in two different threads, two code interpreter sessions are created. Each session is active by default for one hour.
@@ -28,7 +28,7 @@ Code Interpreter allows the Assistants API to write and run Python code in a san
2828

2929
The [models page](../concepts/models.md#assistants-preview) contains the most up-to-date information on regions/models where Assistants and code interpreter are supported.
3030

31-
We recommend using assistants with the latest models to take advantage of the new features, as well as the larger context windows, and more up-to-date training data.
31+
We recommend using assistants with the latest models to take advantage of the new features, larger context windows, and more up-to-date training data.
3232

3333
### API Versions
3434

@@ -69,7 +69,7 @@ We recommend using assistants with the latest models to take advantage of the ne
6969

7070
### File upload API reference
7171

72-
Assistants use the [same API for file upload as fine-tuning](/rest/api/azureopenai/files/upload?view=rest-azureopenai-2024-02-15-preview&tabs=HTTP&preserve-view=true). When uploading a file you have to specify an appropriate value for the [purpose parameter](/rest/api/azureopenai/files/upload?view=rest-azureopenai-2024-02-15-preview&tabs=HTTP&preserve-view=true#purpose).
72+
Assistants use the [same API for file upload as fine-tuning](/rest/api/azureopenai/files/upload?view=rest-azureopenai-2024-02-15-preview&tabs=HTTP&preserve-view=true). When uploading a file, you have to specify an appropriate value for the [purpose parameter](/rest/api/azureopenai/files/upload?view=rest-azureopenai-2024-02-15-preview&tabs=HTTP&preserve-view=true#purpose).
7373

7474
## Enable Code Interpreter
7575

@@ -136,7 +136,7 @@ assistant = client.beta.assistants.create(
136136
instructions="You are an AI assistant that can write code to help answer math questions.",
137137
model="gpt-4-1106-preview",
138138
tools=[{"type": "code_interpreter"}],
139-
file_ids=[file.id]
139+
tool_resources={"code interpreter":{"file_ids":[file.id]}}
140140
)
141141
```
142142

@@ -161,7 +161,11 @@ curl https://YOUR_RESOURCE_NAME.openai.azure.com/openai/assistants?api-version=2
161161
{ "type": "code_interpreter" }
162162
],
163163
"model": "gpt-4-1106-preview",
164-
"file_ids": ["assistant-123abc456"]
164+
"tool_resources"{
165+
"code interpreter": {
166+
"file_ids": ["assistant-1234"]
167+
}
168+
}
165169
}'
166170
```
167171

articles/ai-services/speech-service/high-definition-voices.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Here's a comparison of features between Azure AI Speech HD voices, Azure OpenAI
4747
| **Deployment options** | Cloud only | Cloud only | Cloud, embedded, hybrid, and containers. |
4848
| **Real-time or batch synthesis** | Real-time only | Real-time and batch synthesis | Real-time and batch synthesis |
4949
| **Latency** | Less than 300 ms | Greater than 500 ms | Less than 300 ms |
50-
| **Sample rate of synthesized audio** | 8, 16, 22.05, 24, 44.1, and 48 kHz | 8, 16, 24, and 48 kHz | 8, 16, 22.05, 24, 44.1, and 48 kHz |
50+
| **Sample rate of synthesized audio** | 8, 16, 24, and 48 kHz | 8, 16, 24, and 48 kHz | 8, 16, 24, and 48 kHz |
5151
| **Speech output audio format** | opus, mp3, pcm, truesilk | opus, mp3, pcm, truesilk | opus, mp3, pcm, truesilk |
5252

5353
## Supported Azure AI Speech HD voices

articles/ai-services/translator/language-support.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ ms.author: lajanuar
114114
|Mongolian (Traditional)|`mn-Mong`||| | | |
115115
|Myanmar|`my`||| || |
116116
|Nepali|`ne`||| || |
117-
|Norwegian|`nb`||||||
117+
|Norwegian Bokmål|`nb`||||||
118118
|Nyanja|`nya`||| | | |
119119
|Odia|`or`||||| |
120120
|Pashto|`ps`||| || |
@@ -241,7 +241,7 @@ ms.author: lajanuar
241241
|Mongolian (Traditional)|`mn-Mong`|Yes|No|
242242
|Myanmar (Burmese)|`my`|Yes|No|
243243
|Nepali|`ne`|Yes|Yes|
244-
|Norwegian|`nb`|Yes|Yes|
244+
|Norwegian Bokmål|`nb`|Yes|Yes|
245245
|Odia|`or`|Yes|No|
246246
|Pashto|`ps`|Yes|No|
247247
|Persian|`fa`|Yes|No|

articles/machine-learning/how-to-deploy-custom-container.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -226,15 +226,30 @@ blue_deployment = ManagedOnlineDeployment(
226226

227227
---
228228

229-
There are a few important concepts to notice in this YAML/Python parameter:
229+
There are a few important concepts to note in this YAML/Python parameter:
230230

231-
#### Readiness route vs. liveness route
231+
#### Base image
232232

233-
An HTTP server defines paths for both _liveness_ and _readiness_. A liveness route is used to check whether the server is running. A readiness route is used to check whether the server is ready to do work. In machine learning inference, a server could respond 200 OK to a liveness request before loading a model. The server could respond 200 OK to a readiness request only after the model is loaded into memory.
233+
The base image is specified as a parameter in environment, and `docker.io/tensorflow/serving:latest` is used in this example. As you inspect the container, you can find that this server uses `ENTRYPOINT` to start an entry point script, which takes the environment variables such as `MODEL_BASE_PATH` and `MODEL_NAME`, and exposes ports such as `8501`. These details are all specific information for this chosen server. You can use this understanding of the server, to determine how to define the deployment. For example, if you set environment variables for `MODEL_BASE_PATH` and `MODEL_NAME` in the deployment definition, the server (in this case, TF Serving) will take the values to initiate the server. Likewise, if you set the port for the routes to be `8501` in the deployment definition, the user request to such routes will be correctly routed to the TF Serving server.
234234

235-
For more information about liveness and readiness probes, see the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/).
235+
Note that this specific example is based on the TF Serving case, but you can use any containers that will stay up and respond to requests coming to liveness, readiness, and scoring routes. You can refer to other examples and see how the dockerfile is formed (for example, using `CMD` instead of `ENTRYPOINT`) to create the containers.
236236

237-
Notice that this deployment uses the same path for both liveness and readiness, since TF Serving only defines a liveness route.
237+
#### Inference config
238+
239+
Inference config is a parameter in environment, and it specifies the port and path for 3 types of the route: liveness, readiness, and scoring route. Inference config is required if you want to run your own container with managed online endpoint.
240+
241+
#### Readiness route vs liveness route
242+
243+
The API server you choose may provide a way to check the status of the server. There are two types of the route that you can specify: _liveness_ and _readiness_. A liveness route is used to check whether the server is running. A readiness route is used to check whether the server is ready to do work. In the context of machine learning inferencing, a server could respond 200 OK to a liveness request before loading a model, and the server could respond 200 OK to a readiness request only after the model is loaded into the memory.
244+
245+
For more information about liveness and readiness probes in general, see the [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/).
246+
247+
The liveness and readiness routes will be determined by the API server of your choice, as you would have identified when testing the container locally in earlier step. Note that the example deployment in this article uses the same path for both liveness and readiness, since TF Serving only defines a liveness route. Refer to other examples for different patterns to define the routes.
248+
249+
#### Scoring route
250+
251+
The API server you choose would provide a way to receive the payload to work on. In the context of machine learning inferencing, a server would receive the input data via a specific route. Identify this route for your API server as you test the container locally in earlier step, and specify it when you define the deployment to create.
252+
Note that the successful creation of the deployment will update the scoring_uri parameter of the endpoint as well, which you can verify with `az ml online-endpoint show -n <name> --query scoring_uri`.
238253

239254
#### Locating the mounted model
240255

0 commit comments

Comments
 (0)