You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`api-version`| query | True | string | The version of the API in the format "YYYY-MM-DD" or "YYYY-MM-DD-preview". |
31
31
32
+
## Request Header
33
+
34
+
35
+
| Name | Required | Type | Description |
36
+
| --- | --- | --- | --- |
37
+
| extra-parameters || string | The behavior of the API when extra parameters are indicated in the payload. Using `pass-through` makes the API to pass the parameter to the underlying model. Use this value when you want to pass parameters that you know the underlying model can support. Using `ignore` makes the API to drop any unsupported parameter. Use this value when you need to use the same payload across different models, but one of the extra parameters may make a model to error out if not supported. Using `error` makes the API to reject any extra parameter in the payload. Only parameters specified in this API can be indicated, or a 400 error is returned. |
38
+
| azureml-model-deployment || string | Name of the deployment you want to route the request to. Supported for endpoints that support multiple deployments. |
|[ContentFilterError](#contentfiltererror)| The API call fails when the prompt triggers a content filter as configured. Modify the prompt and try again. |
128
-
|[CreateEmbeddingRequest](#createembeddingrequest)| Request for creating embeddings |
129
-
|[CreateEmbeddingResponse](#createembeddingresponse)| Response from an embeddings request |
130
-
|[Detail](#detail)| Details of the errors |
136
+
|[CreateEmbeddingRequest](#createembeddingrequest)| Request for creating embeddings.|
137
+
|[CreateEmbeddingResponse](#createembeddingresponse)| Response from an embeddings request.|
138
+
|[Detail](#detail)| Details of the errors.|
131
139
|[Embedding](#embedding)| Represents the embedding object generated. |
132
140
|[EmbeddingEncodingFormat](#embeddingencodingformat)| The format to return the embeddings in. Either base64, float, int8, uint8, binary, or ubinary. Returns a 422 error if the model doesn't support the value or parameter. |
133
141
|[EmbeddingInputType](#embeddinginputtype)| The type of the input. Either `text`, `query`, or `document`. Returns a 422 error if the model doesn't support the value or parameter. |
134
142
|[EmbeddingObject](#embeddingobject)| The object type, which is always "embedding". |
135
143
|[ListObject](#listobject)| The object type, which is always "list". |
|[NotFoundError](#notfounderror)|The route is not valid for the deployed model.|
145
+
|[TooManyRequestsError](#toomanyrequestserror)|You have hit your assigned rate limit and your requests need to be paced.|
146
+
|[UnauthorizedError](#unauthorizederror)|Authentication is missing or invalid.|
147
+
|[UnprocessableContentError](#unprocessablecontenterror)|The request contains unprocessable content. The error is returned when the payload indicated is valid according to this specification. However, some of the instructions indicated in the payload are not supported by the underlying model. Use the `details` section to understand the offending parameter.|
140
148
|[Usage](#usage)| The usage information for the request. |
141
149
142
150
### ContentFilterError
143
151
152
+
The API call fails when the prompt triggers a content filter as configured. Modify the prompt and try again.
| input | True | string[]| Input text to embed, encoded as a string or array of tokens. To embed multiple inputs in a single request, pass an array of strings or array of token arrays. |
@@ -160,6 +172,8 @@ Status code: 200
160
172
161
173
### CreateEmbeddingResponse
162
174
175
+
Response from an embeddings request.
176
+
163
177
| Name | Type | Description |
164
178
| --- | --- | --- |
165
179
| data |[Embedding](#embedding)\[\]| The list of embeddings generated by the model. |
@@ -169,6 +183,7 @@ Status code: 200
169
183
170
184
### Detail
171
185
186
+
Details for the [UnprocessableContentError](#unprocessablecontenterror) error.
172
187
173
188
| Name | Type | Description |
174
189
| --- | --- | --- |
@@ -255,6 +270,7 @@ The object type, which is always "list".
255
270
256
271
### UnprocessableContentError
257
272
273
+
The request contains unprocessable content. The error is returned when the payload indicated is valid according to this specification. However, some of the instructions indicated in the payload are not supported by the underlying model. Use the `details` section to understand the offending parameter.
258
274
259
275
| Name | Type | Description |
260
276
| --- | --- | --- |
@@ -272,4 +288,4 @@ The usage information for the request.
0 commit comments