Skip to content

Commit 3871430

Browse files
authored
Specify correct input limit for embeddings
Documentation falsely specified a limit of 2048 tokens per input within a request. The actual API Limit is 2048 inputs per request and the length limit of a single input depends on the selected model.
1 parent b6fdb76 commit 3871430

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/ai-services/openai/includes/api-versions/latest-inference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ Get a vector representation of a given input that can be easily consumed by mach
164164

165165
| Name | Type | Description | Required | Default |
166166
|------|------|-------------|----------|---------|
167-
| input | string or array | Input text to get embeddings for, encoded as a string. To get embeddings for multiple inputs in a single request, pass an array of strings. Each input must not exceed 2048 tokens in length.<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. | Yes | |
167+
| input | string or array | Input text to get embeddings for, encoded as a string. To get embeddings for multiple inputs in a single request, pass an array of strings. Each array must not exceed 2048 inputs in length.<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. | Yes | |
168168
| user | string | A unique identifier representing your end-user, which can help monitoring and detecting abuse. | No | |
169169
| input_type | string | input type of embedding search to use | No | |
170170
| encoding_format | string | The format to return the embeddings in. Can be either `float` or `base64`. Defaults to `float`. | No | |

0 commit comments

Comments
 (0)