diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 32fc667962..a70c1a4a76 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -17860,7 +17860,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/inference._types.InferenceEndpointInfo" + "$ref": "#/components/schemas/inference._types.InferenceEndpointInfoAlibabaCloudAI" } } } @@ -79112,6 +79112,38 @@ } } }, + "inference._types.InferenceEndpointInfoAlibabaCloudAI": { + "allOf": [ + { + "$ref": "#/components/schemas/inference._types.InferenceEndpoint" + }, + { + "type": "object", + "properties": { + "inference_id": { + "description": "The inference Id", + "type": "string" + }, + "task_type": { + "$ref": "#/components/schemas/inference._types.TaskTypeAlibabaCloudAI" + } + }, + "required": [ + "inference_id", + "task_type" + ] + } + ] + }, + "inference._types.TaskTypeAlibabaCloudAI": { + "type": "string", + "enum": [ + "text_embedding", + "rerank", + "completion", + "sparse_embedding" + ] + }, "inference._types.AmazonBedrockTaskType": { "type": "string", "enum": [ diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index d04a5b628c..3a2cdd7de5 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -9929,7 +9929,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/inference._types.InferenceEndpointInfo" + "$ref": "#/components/schemas/inference._types.InferenceEndpointInfoAlibabaCloudAI" } } } @@ -50386,6 +50386,38 @@ } } }, + "inference._types.InferenceEndpointInfoAlibabaCloudAI": { + "allOf": [ + { + "$ref": "#/components/schemas/inference._types.InferenceEndpoint" + }, + { + "type": "object", + "properties": { + "inference_id": { + "description": "The inference Id", + "type": "string" + }, + "task_type": { + "$ref": "#/components/schemas/inference._types.TaskTypeAlibabaCloudAI" + } + }, + "required": [ + "inference_id", + "task_type" + ] + } + ] + }, + "inference._types.TaskTypeAlibabaCloudAI": { + "type": "string", + "enum": [ + "text_embedding", + "rerank", + "completion", + "sparse_embedding" + ] + }, "inference._types.AmazonBedrockTaskType": { "type": "string", "enum": [ diff --git a/output/schema/schema.json b/output/schema/schema.json index 65a99ba891..f2a440591c 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -153492,7 +153492,7 @@ } } ], - "specLocation": "inference/_types/Services.ts#L71-L100" + "specLocation": "inference/_types/Services.ts#L86-L115" }, { "kind": "interface", @@ -153551,7 +153551,7 @@ } } ], - "specLocation": "inference/_types/Services.ts#L24-L44" + "specLocation": "inference/_types/Services.ts#L28-L48" }, { "kind": "interface", @@ -153592,7 +153592,47 @@ } } ], - "specLocation": "inference/_types/Services.ts#L46-L58" + "specLocation": "inference/_types/Services.ts#L50-L62" + }, + { + "kind": "interface", + "inherits": { + "type": { + "name": "InferenceEndpoint", + "namespace": "inference._types" + } + }, + "name": { + "name": "InferenceEndpointInfoAlibabaCloudAI", + "namespace": "inference._types" + }, + "properties": [ + { + "description": "The inference Id", + "name": "inference_id", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + }, + { + "description": "The task type", + "name": "task_type", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "TaskTypeAlibabaCloudAI", + "namespace": "inference._types" + } + } + } + ], + "specLocation": "inference/_types/Services.ts#L75-L84" }, { "kind": "interface", @@ -153632,7 +153672,7 @@ } } ], - "specLocation": "inference/_types/Services.ts#L60-L69" + "specLocation": "inference/_types/Services.ts#L64-L73" }, { "kind": "interface", @@ -154299,7 +154339,7 @@ } } ], - "specLocation": "inference/_types/Services.ts#L106-L111" + "specLocation": "inference/_types/Services.ts#L121-L126" }, { "kind": "interface", @@ -154447,7 +154487,7 @@ "name": "ServiceSettings", "namespace": "inference._types" }, - "specLocation": "inference/_types/Services.ts#L102-L102", + "specLocation": "inference/_types/Services.ts#L117-L117", "type": { "kind": "user_defined_value" } @@ -154531,7 +154571,7 @@ "name": "TaskSettings", "namespace": "inference._types" }, - "specLocation": "inference/_types/Services.ts#L104-L104", + "specLocation": "inference/_types/Services.ts#L119-L119", "type": { "kind": "user_defined_value" } @@ -154561,6 +154601,28 @@ }, "specLocation": "inference/_types/TaskType.ts#L20-L29" }, + { + "kind": "enum", + "members": [ + { + "name": "text_embedding" + }, + { + "name": "rerank" + }, + { + "name": "completion" + }, + { + "name": "sparse_embedding" + } + ], + "name": { + "name": "TaskTypeAlibabaCloudAI", + "namespace": "inference._types" + }, + "specLocation": "inference/_types/TaskType.ts#L36-L41" + }, { "kind": "enum", "members": [ @@ -155738,7 +155800,7 @@ "value": { "kind": "instance_of", "type": { - "name": "InferenceEndpointInfo", + "name": "InferenceEndpointInfoAlibabaCloudAI", "namespace": "inference._types" } } diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 2933a83f68..85c2086092 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -13451,6 +13451,11 @@ export interface InferenceInferenceEndpointInfo extends InferenceInferenceEndpoi task_type: InferenceTaskType } +export interface InferenceInferenceEndpointInfoAlibabaCloudAI extends InferenceInferenceEndpoint { + inference_id: string + task_type: InferenceTaskTypeAlibabaCloudAI +} + export interface InferenceInferenceEndpointInfoJinaAi extends InferenceInferenceEndpoint { inference_id: string task_type: InferenceTaskTypeJinaAi @@ -13564,6 +13569,8 @@ export type InferenceTaskSettings = any export type InferenceTaskType = 'sparse_embedding' | 'text_embedding' | 'rerank' | 'completion' | 'chat_completion' +export type InferenceTaskTypeAlibabaCloudAI = 'text_embedding' | 'rerank' | 'completion' | 'sparse_embedding' + export type InferenceTaskTypeJinaAi = 'text_embedding' | 'rerank' export interface InferenceTextEmbeddingByteResult { @@ -13690,7 +13697,7 @@ export interface InferencePutAlibabacloudRequest extends RequestBase { } } -export type InferencePutAlibabacloudResponse = InferenceInferenceEndpointInfo +export type InferencePutAlibabacloudResponse = InferenceInferenceEndpointInfoAlibabaCloudAI export interface InferencePutAmazonbedrockRequest extends RequestBase { task_type: InferenceAmazonBedrockTaskType diff --git a/specification/inference/_types/Services.ts b/specification/inference/_types/Services.ts index 110ad4a5e6..63ef6bc1b8 100644 --- a/specification/inference/_types/Services.ts +++ b/specification/inference/_types/Services.ts @@ -19,7 +19,11 @@ import { UserDefinedValue } from '@spec_utils/UserDefinedValue' import { integer } from '@_types/Numeric' -import { TaskType, TaskTypeJinaAi } from '../_types/TaskType' +import { + TaskType, + TaskTypeAlibabaCloudAI, + TaskTypeJinaAi +} from '../_types/TaskType' /** * Configuration options when storing the inference endpoint @@ -68,6 +72,17 @@ export class InferenceEndpointInfoJinaAi extends InferenceEndpoint { task_type: TaskTypeJinaAi } +export class InferenceEndpointInfoAlibabaCloudAI extends InferenceEndpoint { + /** + * The inference Id + */ + inference_id: string + /** + * The task type + */ + task_type: TaskTypeAlibabaCloudAI +} + /** * Chunking configuration object */ diff --git a/specification/inference/_types/TaskType.ts b/specification/inference/_types/TaskType.ts index 9eba8b1fc1..5025ef40ba 100644 --- a/specification/inference/_types/TaskType.ts +++ b/specification/inference/_types/TaskType.ts @@ -32,3 +32,10 @@ export enum TaskTypeJinaAi { text_embedding, rerank } + +export enum TaskTypeAlibabaCloudAI { + text_embedding, + rerank, + completion, + sparse_embedding +} diff --git a/specification/inference/put_alibabacloud/PutAlibabaCloudResponse.ts b/specification/inference/put_alibabacloud/PutAlibabaCloudResponse.ts index d40639b031..1d38141957 100644 --- a/specification/inference/put_alibabacloud/PutAlibabaCloudResponse.ts +++ b/specification/inference/put_alibabacloud/PutAlibabaCloudResponse.ts @@ -17,8 +17,8 @@ * under the License. */ -import { InferenceEndpointInfo } from '@inference/_types/Services' +import { InferenceEndpointInfoAlibabaCloudAI } from '@inference/_types/Services' export class Response { - body: InferenceEndpointInfo + body: InferenceEndpointInfoAlibabaCloudAI }