Skip to content

Commit dac2d1d

Browse files
committed
fix embeddings api
1 parent 98ba922 commit dac2d1d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

articles/ai-foundry/foundry-local/reference/reference-rest.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ Compatible with the [OpenAI Embeddings API](https://platform.openai.com/docs/api
184184
The embedding model to use (e.g., `"text-embedding-ada-002"`).
185185
- `input` (string or array)
186186
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"`).
189189

190190
**Response body:**
191191

@@ -213,9 +213,8 @@ Compatible with the [OpenAI Embeddings API](https://platform.openai.com/docs/api
213213
- Request body
214214
```json
215215
{
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?"
219218
}
220219
```
221220
- Response body
@@ -229,7 +228,7 @@ Compatible with the [OpenAI Embeddings API](https://platform.openai.com/docs/api
229228
"index": 0
230229
}
231230
],
232-
"model": "text-embedding-ada-002",
231+
"model": "qwen_w_embeddings",
233232
"usage": {
234233
"prompt_tokens": 10,
235234
"total_tokens": 10

0 commit comments

Comments
 (0)