diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index b744d9d6df..11259e5004 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -19295,7 +19295,7 @@ { "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": { @@ -81247,7 +81247,9 @@ "inference._types.WatsonxTaskType": { "type": "string", "enum": [ - "text_embedding" + "text_embedding", + "chat_completion", + "completion" ] }, "inference._types.WatsonxServiceType": { @@ -81277,7 +81279,7 @@ "externalDocs": { "url": "https://www.ibm.com/products/watsonx-ai/foundation-models" }, - "description": "The name of the model to use for the inference task.\nRefer to the IBM Embedding Models section in the Watsonx documentation for the list of available text embedding models.", + "description": "The name of the model to use for the inference task.\nRefer to the IBM Embedding Models section in the Watsonx documentation for the list of available text embedding models.\nRefer to the IBM library - Foundation models in Watsonx.ai.", "type": "string" }, "project_id": { diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 2cc256a206..957289e5c7 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -11278,7 +11278,7 @@ { "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": { @@ -52262,7 +52262,9 @@ "inference._types.WatsonxTaskType": { "type": "string", "enum": [ - "text_embedding" + "text_embedding", + "chat_completion", + "completion" ] }, "inference._types.WatsonxServiceType": { @@ -52292,7 +52294,7 @@ "externalDocs": { "url": "https://www.ibm.com/products/watsonx-ai/foundation-models" }, - "description": "The name of the model to use for the inference task.\nRefer to the IBM Embedding Models section in the Watsonx documentation for the list of available text embedding models.", + "description": "The name of the model to use for the inference task.\nRefer to the IBM Embedding Models section in the Watsonx documentation for the list of available text embedding models.\nRefer to the IBM library - Foundation models in Watsonx.ai.", "type": "string" }, "project_id": { diff --git a/output/schema/schema.json b/output/schema/schema.json index 41cd3da810..91d8569610 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -165425,7 +165425,7 @@ } }, { - "description": "The name of the model to use for the inference task.\nRefer to the IBM Embedding Models section in the Watsonx documentation for the list of available text embedding models.", + "description": "The name of the model to use for the inference task.\nRefer to the IBM Embedding Models section in the Watsonx documentation for the list of available text embedding models.\nRefer to the IBM library - Foundation models in Watsonx.ai.", "extDocId": "watsonx-api-models", "extDocUrl": "https://www.ibm.com/products/watsonx-ai/foundation-models", "name": "model_id", @@ -165475,7 +165475,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1250-L1287" + "specLocation": "inference/_types/CommonTypes.ts#L1250-L1288" }, { "kind": "enum", @@ -165488,20 +165488,26 @@ "name": "WatsonxServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1293-L1295" + "specLocation": "inference/_types/CommonTypes.ts#L1296-L1298" }, { "kind": "enum", "members": [ { "name": "text_embedding" + }, + { + "name": "chat_completion" + }, + { + "name": "completion" } ], "name": { "name": "WatsonxTaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1289-L1291" + "specLocation": "inference/_types/CommonTypes.ts#L1290-L1294" }, { "kind": "request", @@ -169217,7 +169223,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": { @@ -169242,7 +169248,7 @@ } ], "query": [], - "specLocation": "inference/put_watsonx/PutWatsonxRequest.ts#L28-L68" + "specLocation": "inference/put_watsonx/PutWatsonxRequest.ts#L28-L67" }, { "kind": "response", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 8159a7f3fa..b3390c232d 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -13820,7 +13820,7 @@ export interface InferenceWatsonxServiceSettings { export type InferenceWatsonxServiceType = 'watsonxai' -export type InferenceWatsonxTaskType = 'text_embedding' +export type InferenceWatsonxTaskType = 'text_embedding' | 'chat_completion' | 'completion' export interface InferenceChatCompletionUnifiedRequest extends RequestBase { inference_id: Id diff --git a/specification/inference/_types/CommonTypes.ts b/specification/inference/_types/CommonTypes.ts index 04335c0bab..454be45c19 100644 --- a/specification/inference/_types/CommonTypes.ts +++ b/specification/inference/_types/CommonTypes.ts @@ -1268,6 +1268,7 @@ export class WatsonxServiceSettings { /** * The name of the model to use for the inference task. * Refer to the IBM Embedding Models section in the Watsonx documentation for the list of available text embedding models. + * Refer to the IBM library - Foundation models in Watsonx.ai. * @ext_doc_id watsonx-api-models */ model_id: string @@ -1287,7 +1288,9 @@ export class WatsonxServiceSettings { } export enum WatsonxTaskType { - text_embedding + text_embedding, + chat_completion, + completion } export enum WatsonxServiceType { diff --git a/specification/inference/put_watsonx/PutWatsonxRequest.ts b/specification/inference/put_watsonx/PutWatsonxRequest.ts index f7f80f5a81..f582fe0790 100644 --- a/specification/inference/put_watsonx/PutWatsonxRequest.ts +++ b/specification/inference/put_watsonx/PutWatsonxRequest.ts @@ -46,8 +46,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: WatsonxTaskType /**