Skip to content

Commit 5818168

Browse files
Merge pull request #248319 from mrbullwinkle/mrb_08_15_2023_update_ref
[Azure AI] [Azure OpenAI] Ref update
2 parents 54a0ee9 + cf32a32 commit 5818168

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/ai-services/openai/reference.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ manager: nitinme
77
ms.service: cognitive-services
88
ms.subservice: openai
99
ms.topic: conceptual
10-
ms.date: 08/14/2023
10+
ms.date: 08/15/2023
1111
author: mrbullwinkle
1212
ms.author: mbullwin
1313
recommendations: false
@@ -116,7 +116,7 @@ In the example response, `finish_reason` equals `stop`. If `finish_reason` equal
116116
Get a vector representation of a given input that can be easily consumed by machine learning models and other algorithms.
117117

118118
> [!NOTE]
119-
> We currently do not support batching of embeddings into a single API call. If you receive the error `InvalidRequestError: Too many inputs. The max number of inputs is 1. We hope to increase the number of inputs per request soon.`, this typically occurs when an array of embeddings is attempted to be passed as a batch rather than a single string. The string can be up to 8191 tokens in length when using the text-embedding-ada-002 (Version 2) model.
119+
> OpenAI currently allows a larger number of array inputs with `text-embedding-ada-002`. Azure OpenAI currently supports input arrays up to 16 for `text-embedding-ada-002 (Version 2)`. Both require the max input token limit per API request to remain under 8191 for this model.
120120
121121
**Create an embedding**
122122

@@ -142,8 +142,8 @@ POST https://{your-resource-name}.openai.azure.com/openai/deployments/{deploymen
142142

143143
| Parameter | Type | Required? | Default | Description |
144144
|--|--|--|--|--|
145-
| ```input```| string | Yes | N/A | Input text to get embeddings for, encoded as a string. The number of input tokens varies depending on what [model you are using](./concepts/models.md). <br> Unless you're embedding code, we suggest replacing newlines (\n) in your input with a single space, as we have observed inferior results when newlines are present.|
146-
| ```user``` | string | No | Null | A unique identifier representing for your end-user. This will help Azure OpenAI monitor and detect abuse. **Do not pass PII identifiers instead use pseudoanonymized values such as GUIDs** |
145+
| ```input```| string or array | Yes | N/A | Input text to get embeddings for, encoded as an array or string. The number of input tokens varies depending on what [model you are using](./concepts/models.md). Only `text-embedding-ada-002 (Version 2)` supports array input.|
146+
| ```user``` | string | No | Null | A unique identifier representing your end-user. This will help Azure OpenAI monitor and detect abuse. **Do not pass PII identifiers instead use pseudoanonymized values such as GUIDs** |
147147

148148
#### Example request
149149

0 commit comments

Comments
 (0)