Create an inference endpoint to perform an inference task with the mistral service.
##Required authorization
- Cluster privileges:
manage_inference
Path parameters
-
The type of the inference task that the model will perform.
Values are
text_embedding,completion, orchat_completion. -
The unique identifier of the inference endpoint.
PUT
/_inference/{task_type}/{mistral_inference_id}
Console
PUT _inference/text_embedding/mistral-embeddings-test
{
"service": "mistral",
"service_settings": {
"api_key": "Mistral-API-Key",
"model": "mistral-embed"
}
}
curl \
--request PUT 'http://api.example.com/_inference/{task_type}/{mistral_inference_id}' \
--header "Content-Type: application/json" \
--data '"{\n \"service\": \"mistral\",\n \"service_settings\": {\n \"api_key\": \"Mistral-API-Key\",\n \"model\": \"mistral-embed\" \n }\n}"'
Request example
Run `PUT _inference/text_embedding/mistral-embeddings-test` to create a Mistral inference endpoint that performs a text embedding task.
{
"service": "mistral",
"service_settings": {
"api_key": "Mistral-API-Key",
"model": "mistral-embed"
}
}