diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index bf4faebafc..c8f06ee088 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -21594,7 +21594,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": { @@ -87094,7 +87094,9 @@ "inference._types.WatsonxTaskType": { "type": "string", "enum": [ - "text_embedding" + "text_embedding", + "chat_completion", + "completion" ] }, "inference._types.WatsonxServiceType": { @@ -87124,7 +87126,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": { @@ -87173,7 +87175,9 @@ "inference._types.TaskTypeWatsonx": { "type": "string", "enum": [ - "text_embedding" + "text_embedding", + "chat_completion", + "completion" ] }, "inference._types.RerankedInferenceResult": { diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 5ffd7772ee..0c700660e9 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -12565,7 +12565,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": { @@ -55702,7 +55702,9 @@ "inference._types.WatsonxTaskType": { "type": "string", "enum": [ - "text_embedding" + "text_embedding", + "chat_completion", + "completion" ] }, "inference._types.WatsonxServiceType": { @@ -55732,7 +55734,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": { @@ -55781,7 +55783,9 @@ "inference._types.TaskTypeWatsonx": { "type": "string", "enum": [ - "text_embedding" + "text_embedding", + "chat_completion", + "completion" ] }, "inference._types.RerankedInferenceResult": { diff --git a/output/schema/schema.json b/output/schema/schema.json index 412a8791e6..caf0ac3361 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -159008,13 +159008,19 @@ "members": [ { "name": "text_embedding" + }, + { + "name": "chat_completion" + }, + { + "name": "completion" } ], "name": { "name": "TaskTypeWatsonx", "namespace": "inference._types" }, - "specLocation": "inference/_types/TaskType.ts#L111-L113" + "specLocation": "inference/_types/TaskType.ts#L111-L115" }, { "kind": "interface", @@ -159387,7 +159393,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", @@ -159437,7 +159443,7 @@ } } ], - "specLocation": "inference/_types/CommonTypes.ts#L1237-L1274" + "specLocation": "inference/_types/CommonTypes.ts#L1237-L1275" }, { "kind": "enum", @@ -159450,20 +159456,26 @@ "name": "WatsonxServiceType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1280-L1282" + "specLocation": "inference/_types/CommonTypes.ts#L1283-L1285" }, { "kind": "enum", "members": [ { "name": "text_embedding" + }, + { + "name": "chat_completion" + }, + { + "name": "completion" } ], "name": { "name": "WatsonxTaskType", "namespace": "inference._types" }, - "specLocation": "inference/_types/CommonTypes.ts#L1276-L1278" + "specLocation": "inference/_types/CommonTypes.ts#L1277-L1281" }, { "kind": "request", @@ -162115,7 +162127,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": { @@ -162140,7 +162152,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 14995caa4e..55cad95afb 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -13911,7 +13911,7 @@ export type InferenceTaskTypeOpenAI = 'text_embedding' | 'chat_completion' | 'co export type InferenceTaskTypeVoyageAI = 'text_embedding' | 'rerank' -export type InferenceTaskTypeWatsonx = 'text_embedding' +export type InferenceTaskTypeWatsonx = 'text_embedding' | 'chat_completion' | 'completion' export interface InferenceTextEmbeddingByteResult { embedding: InferenceDenseByteVector @@ -13967,7 +13967,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 8a2f64030e..b1e3f3dc54 100644 --- a/specification/inference/_types/CommonTypes.ts +++ b/specification/inference/_types/CommonTypes.ts @@ -1255,6 +1255,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 @@ -1274,7 +1275,9 @@ export class WatsonxServiceSettings { } export enum WatsonxTaskType { - text_embedding + text_embedding, + chat_completion, + completion } export enum WatsonxServiceType { diff --git a/specification/inference/_types/TaskType.ts b/specification/inference/_types/TaskType.ts index d7dd35d589..d102e61c51 100644 --- a/specification/inference/_types/TaskType.ts +++ b/specification/inference/_types/TaskType.ts @@ -109,5 +109,7 @@ export enum TaskTypeVoyageAI { } export enum TaskTypeWatsonx { - text_embedding + text_embedding, + chat_completion, + completion } 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 /**