diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 571906b704..45dc107975 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -18849,13 +18849,13 @@ "inference" ], "summary": "Create a Mistral inference endpoint", - "description": "Creates an inference endpoint to perform an inference task with the `mistral` service.", + "description": "Create an inference endpoint to perform an inference task with the `mistral` service.", "operationId": "inference-put-mistral", "parameters": [ { "in": "path", "name": "task_type", - "description": "The task type.\nThe only valid task type for the model to perform is `text_embedding`.", + "description": "The type of the inference task that the model will perform.", "required": true, "deprecated": false, "schema": { @@ -79985,7 +79985,9 @@ "inference._types.MistralTaskType": { "type": "string", "enum": [ - "text_embedding" + "text_embedding", + "completion", + "chat_completion" ] }, "inference._types.MistralServiceType": { @@ -80012,7 +80014,7 @@ "externalDocs": { "url": "https://docs.mistral.ai/getting-started/models/" }, - "description": "The name of the model to use for the inference task.\nRefer to the Mistral models documentation for the list of available text embedding models.", + "description": "The name of the model to use for the inference task.\nRefer to the Mistral models documentation for the list of available models.", "type": "string" }, "rate_limit": { diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 8ba91b2d6b..86e25b9d2c 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -10908,13 +10908,13 @@ "inference" ], "summary": "Create a Mistral inference endpoint", - "description": "Creates an inference endpoint to perform an inference task with the `mistral` service.", + "description": "Create an inference endpoint to perform an inference task with the `mistral` service.", "operationId": "inference-put-mistral", "parameters": [ { "in": "path", "name": "task_type", - "description": "The task type.\nThe only valid task type for the model to perform is `text_embedding`.", + "description": "The type of the inference task that the model will perform.", "required": true, "deprecated": false, "schema": { @@ -51247,7 +51247,9 @@ "inference._types.MistralTaskType": { "type": "string", "enum": [ - "text_embedding" + "text_embedding", + "completion", + "chat_completion" ] }, "inference._types.MistralServiceType": { @@ -51274,7 +51276,7 @@ "externalDocs": { "url": "https://docs.mistral.ai/getting-started/models/" }, - "description": "The name of the model to use for the inference task.\nRefer to the Mistral models documentation for the list of available text embedding models.", + "description": "The name of the model to use for the inference task.\nRefer to the Mistral models documentation for the list of available models.", "type": "string" }, "rate_limit": { diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index ed482070ee..2c17edabfa 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -5324,7 +5324,7 @@ "visibility": "public" } }, - "description": "Create a Mistral inference endpoint.\n\nCreates an inference endpoint to perform an inference task with the `mistral` service.", + "description": "Create a Mistral inference endpoint.\n\nCreate an inference endpoint to perform an inference task with the `mistral` service.", "docId": "inference-api-put-mistral", "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/infer-service-mistral.html", "name": "inference.put_mistral", @@ -29771,7 +29771,7 @@ } ] }, - "description": "Create a Mistral inference endpoint.\n\nCreates an inference endpoint to perform an inference task with the `mistral` service.", + "description": "Create a Mistral inference endpoint.\n\nCreate an inference endpoint to perform an inference task with the `mistral` service.", "examples": { "PutMistralRequestExample1": { "description": "Run `PUT _inference/text_embedding/mistral-embeddings-test` to create a Mistral inference endpoint that performs a text embedding task.", @@ -29791,7 +29791,7 @@ }, "path": [ { - "description": "The task type.\nThe only valid task type for the model to perform is `text_embedding`.", + "description": "The type of the inference task that the model will perform.", "name": "task_type", "required": true, "type": { @@ -29816,7 +29816,7 @@ } ], "query": [], - "specLocation": "inference/put_mistral/PutMistralRequest.ts#L29-L72" + "specLocation": "inference/put_mistral/PutMistralRequest.ts#L29-L71" }, { "body": { @@ -105047,20 +105047,26 @@ "name": "MistralServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1017-L1019" + "specLocation": "inference/_types/CommonTypes.ts#L1019-L1021" }, { "kind": "enum", "members": [ { "name": "text_embedding" + }, + { + "name": "completion" + }, + { + "name": "chat_completion" } ], "name": { "name": "MistralTaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1013-L1015" + "specLocation": "inference/_types/CommonTypes.ts#L1013-L1017" }, { "kind": "enum", @@ -105073,7 +105079,7 @@ "name": "OpenAIServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1079-L1081" + "specLocation": "inference/_types/CommonTypes.ts#L1081-L1083" }, { "kind": "enum", @@ -105092,7 +105098,7 @@ "name": "OpenAITaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1073-L1077" + "specLocation": "inference/_types/CommonTypes.ts#L1075-L1079" }, { "kind": "type_alias", @@ -105217,7 +105223,7 @@ "name": "VoyageAIServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1147-L1149" + "specLocation": "inference/_types/CommonTypes.ts#L1149-L1151" }, { "kind": "enum", @@ -105233,7 +105239,7 @@ "name": "VoyageAITaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1142-L1145" + "specLocation": "inference/_types/CommonTypes.ts#L1144-L1147" }, { "kind": "enum", @@ -105246,7 +105252,7 @@ "name": "WatsonxServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1194-L1196" + "specLocation": "inference/_types/CommonTypes.ts#L1196-L1198" }, { "kind": "enum", @@ -105259,7 +105265,7 @@ "name": "WatsonxTaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1190-L1192" + "specLocation": "inference/_types/CommonTypes.ts#L1192-L1194" }, { "kind": "enum", @@ -127307,7 +127313,7 @@ } }, { - "description": "The name of the model to use for the inference task.\nRefer to the Mistral models documentation for the list of available text embedding models.", + "description": "The name of the model to use for the inference task.\nRefer to the Mistral models documentation for the list of available models.", "extDocId": "mistral-api-models", "extDocUrl": "https://docs.mistral.ai/getting-started/models/", "name": "model", @@ -127420,7 +127426,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1021-L1063" + "specLocation": "inference/_types/CommonTypes.ts#L1023-L1065" }, { "kind": "interface", @@ -127442,7 +127448,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1065-L1071" + "specLocation": "inference/_types/CommonTypes.ts#L1067-L1073" }, { "kind": "interface", @@ -127506,7 +127512,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1083-L1114" + "specLocation": "inference/_types/CommonTypes.ts#L1085-L1116" }, { "kind": "interface", @@ -127566,7 +127572,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1116-L1140" + "specLocation": "inference/_types/CommonTypes.ts#L1118-L1142" }, { "kind": "interface", @@ -127654,7 +127660,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1151-L1188" + "specLocation": "inference/_types/CommonTypes.ts#L1153-L1190" }, { "description": "Defines the response for a rerank request.", diff --git a/output/schema/schema.json b/output/schema/schema.json index 217e339c3f..b561710408 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -10004,7 +10004,7 @@ "visibility": "public" } }, - "description": "Create a Mistral inference endpoint.\n\nCreates an inference endpoint to perform an inference task with the `mistral` service.", + "description": "Create a Mistral inference endpoint.\n\nCreate an inference endpoint to perform an inference task with the `mistral` service.", "docId": "inference-api-put-mistral", "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/infer-service-mistral.html", "name": "inference.put_mistral", @@ -154821,7 +154821,7 @@ } }, { - "description": "The name of the model to use for the inference task.\nRefer to the Mistral models documentation for the list of available text embedding models.", + "description": "The name of the model to use for the inference task.\nRefer to the Mistral models documentation for the list of available models.", "extDocId": "mistral-api-models", "extDocUrl": "https://docs.mistral.ai/getting-started/models/", "name": "model", @@ -154860,20 +154860,26 @@ "name": "MistralServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1017-L1019" + "specLocation": "inference/_types/CommonTypes.ts#L1019-L1021" }, { "kind": "enum", "members": [ { "name": "text_embedding" + }, + { + "name": "completion" + }, + { + "name": "chat_completion" } ], "name": { "name": "MistralTaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1013-L1015" + "specLocation": "inference/_types/CommonTypes.ts#L1013-L1017" }, { "kind": "interface", @@ -154960,7 +154966,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1021-L1063" + "specLocation": "inference/_types/CommonTypes.ts#L1023-L1065" }, { "kind": "enum", @@ -154973,7 +154979,7 @@ "name": "OpenAIServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1079-L1081" + "specLocation": "inference/_types/CommonTypes.ts#L1081-L1083" }, { "kind": "interface", @@ -154995,7 +155001,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1065-L1071" + "specLocation": "inference/_types/CommonTypes.ts#L1067-L1073" }, { "kind": "enum", @@ -155014,7 +155020,7 @@ "name": "OpenAITaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1073-L1077" + "specLocation": "inference/_types/CommonTypes.ts#L1075-L1079" }, { "kind": "interface", @@ -155624,7 +155630,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1083-L1114" + "specLocation": "inference/_types/CommonTypes.ts#L1085-L1116" }, { "kind": "enum", @@ -155637,7 +155643,7 @@ "name": "VoyageAIServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1147-L1149" + "specLocation": "inference/_types/CommonTypes.ts#L1149-L1151" }, { "kind": "interface", @@ -155697,7 +155703,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1116-L1140" + "specLocation": "inference/_types/CommonTypes.ts#L1118-L1142" }, { "kind": "enum", @@ -155713,7 +155719,7 @@ "name": "VoyageAITaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1142-L1145" + "specLocation": "inference/_types/CommonTypes.ts#L1144-L1147" }, { "kind": "interface", @@ -155801,7 +155807,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1151-L1188" + "specLocation": "inference/_types/CommonTypes.ts#L1153-L1190" }, { "kind": "enum", @@ -155814,7 +155820,7 @@ "name": "WatsonxServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1194-L1196" + "specLocation": "inference/_types/CommonTypes.ts#L1196-L1198" }, { "kind": "enum", @@ -155827,7 +155833,7 @@ "name": "WatsonxTaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1190-L1192" + "specLocation": "inference/_types/CommonTypes.ts#L1192-L1194" }, { "kind": "request", @@ -158028,7 +158034,7 @@ } ] }, - "description": "Create a Mistral inference endpoint.\n\nCreates an inference endpoint to perform an inference task with the `mistral` service.", + "description": "Create a Mistral inference endpoint.\n\nCreate an inference endpoint to perform an inference task with the `mistral` service.", "examples": { "PutMistralRequestExample1": { "description": "Run `PUT _inference/text_embedding/mistral-embeddings-test` to create a Mistral inference endpoint that performs a text embedding task.", @@ -158047,7 +158053,7 @@ }, "path": [ { - "description": "The task type.\nThe only valid task type for the model to perform is `text_embedding`.", + "description": "The type of the inference task that the model will perform.", "name": "task_type", "required": true, "type": { @@ -158072,7 +158078,7 @@ } ], "query": [], - "specLocation": "inference/put_mistral/PutMistralRequest.ts#L29-L72" + "specLocation": "inference/put_mistral/PutMistralRequest.ts#L29-L71" }, { "kind": "response", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 0c43e6cc58..cce763280c 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -13573,7 +13573,7 @@ export interface InferenceMistralServiceSettings { export type InferenceMistralServiceType = 'mistral' -export type InferenceMistralTaskType = 'text_embedding' +export type InferenceMistralTaskType = 'text_embedding' | 'completion' | 'chat_completion' export interface InferenceOpenAIServiceSettings { api_key: string diff --git a/specification/inference/_types/CommonTypes.ts b/specification/inference/_types/CommonTypes.ts index 9bd0f96cf7..772d12a74d 100644 --- a/specification/inference/_types/CommonTypes.ts +++ b/specification/inference/_types/CommonTypes.ts @@ -999,7 +999,7 @@ export class MistralServiceSettings { max_input_tokens?: integer /** * The name of the model to use for the inference task. - * Refer to the Mistral models documentation for the list of available text embedding models. + * Refer to the Mistral models documentation for the list of available models. * @ext_doc_id mistral-api-models */ model: string @@ -1011,7 +1011,9 @@ export class MistralServiceSettings { } export enum MistralTaskType { - text_embedding + text_embedding, + completion, + chat_completion } export enum MistralServiceType { diff --git a/specification/inference/put_mistral/PutMistralRequest.ts b/specification/inference/put_mistral/PutMistralRequest.ts index 0bc9713a87..17508e1505 100644 --- a/specification/inference/put_mistral/PutMistralRequest.ts +++ b/specification/inference/put_mistral/PutMistralRequest.ts @@ -29,7 +29,7 @@ import { InferenceChunkingSettings } from '@inference/_types/Services' /** * Create a Mistral inference endpoint. * - * Creates an inference endpoint to perform an inference task with the `mistral` service. + * Create an inference endpoint to perform an inference task with the `mistral` service. * @rest_spec_name inference.put_mistral * @availability stack since=8.15.0 stability=stable visibility=public * @availability serverless stability=stable visibility=public @@ -45,8 +45,7 @@ export interface Request extends RequestBase { ] path_parts: { /** - * The task type. - * The only valid task type for the model to perform is `text_embedding`. + * The type of the inference task that the model will perform. */ task_type: MistralTaskType /**