@@ -162,6 +162,12 @@ creating the {infer} model, you cannot change the associated API key. If you
162
162
want to use a different API key, delete the {infer} model and recreate it with
163
163
the same name and the updated API key.
164
164
165
+ `model_id`:::
166
+ (Optional, string)
167
+ The name of the model to use for the {infer} task. Refer to the
168
+ https://platform.openai.com/docs/guides/embeddings/what-are-embeddings[OpenAI documentation]
169
+ for the list of available text embedding models.
170
+
165
171
`organization_id`:::
166
172
(Optional, string)
167
173
The unique identifier of your organization. You can find the Organization ID in
@@ -215,13 +221,6 @@ Valid values are:
215
221
* `search`: use it for storing embeddings of search queries run against a
216
222
vector data base to find relevant documents.
217
223
218
- `model`:::
219
- (Optional, string)
220
- For `openai` sevice only. The name of the model to use for the {infer} task. Refer
221
- to the
222
- https://platform.openai.com/docs/guides/embeddings/what-are-embeddings[OpenAI documentation]
223
- for the list of available text embedding models.
224
-
225
224
`truncate`:::
226
225
(Optional, string)
227
226
For `cohere` service only. Specifies how the API handles inputs longer than the
@@ -256,7 +255,7 @@ PUT _inference/text_embedding/cohere-embeddings
256
255
"service": "cohere",
257
256
"service_settings": {
258
257
"api_key": "<api_key>",
259
- "model ": "embed-english-light-v3.0",
258
+ "model_id ": "embed-english-light-v3.0",
260
259
"embedding_type": "byte"
261
260
}
262
261
}
@@ -304,8 +303,7 @@ PUT _inference/sparse_embedding/my-elser-model
304
303
"service_settings": {
305
304
"num_allocations": 1,
306
305
"num_threads": 1
307
- },
308
- "task_settings": {}
306
+ }
309
307
}
310
308
------------------------------------------------------------
311
309
// TEST[skip:TBD]
@@ -397,10 +395,8 @@ PUT _inference/text_embedding/openai_embeddings
397
395
{
398
396
"service": "openai",
399
397
"service_settings": {
400
- "api_key": "<api_key>"
401
- },
402
- "task_settings": {
403
- "model": "text-embedding-ada-002"
398
+ "api_key": "<api_key>",
399
+ "model_id": "text-embedding-ada-002"
404
400
}
405
401
}
406
402
------------------------------------------------------------
0 commit comments