File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
articles/ai-foundry/foundry-local/reference Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -184,8 +184,8 @@ Compatible with the [OpenAI Embeddings API](https://platform.openai.com/docs/api
184
184
The embedding model to use (e.g., ` "text-embedding-ada-002" ` ).
185
185
- ` input ` (string or array)
186
186
Input text to embed. Can be a single string or an array of strings/tokens.
187
- - ` user ` (string, optional)
188
- A unique identifier representing your end-user for abuse monitoring .
187
+ - ` encoding_format ` (string, optional)
188
+ The encoding format ( ` "base64" ` or ` "float" ` ) .
189
189
190
190
** Response body:**
191
191
@@ -213,9 +213,8 @@ Compatible with the [OpenAI Embeddings API](https://platform.openai.com/docs/api
213
213
- Request body
214
214
``` json
215
215
{
216
- "model" : " text-embedding-ada-002" ,
217
- "input" : " Hello, how are you?" ,
218
- "user" : " user_id_123"
216
+ "model" : " qwen_w_embeddings" ,
217
+ "input" : " Hello, how are you?"
219
218
}
220
219
```
221
220
- Response body
@@ -229,7 +228,7 @@ Compatible with the [OpenAI Embeddings API](https://platform.openai.com/docs/api
229
228
"index" : 0
230
229
}
231
230
],
232
- "model" : " text-embedding-ada-002 " ,
231
+ "model" : " qwen_w_embeddings " ,
233
232
"usage" : {
234
233
"prompt_tokens" : 10 ,
235
234
"total_tokens" : 10
You can’t perform that action at this time.
0 commit comments