diff --git a/src/api/types.ts b/src/api/types.ts index 76ad59b3a..ddbdf58be 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -13086,7 +13086,7 @@ export interface InferenceAzureOpenAITaskSettings { export type InferenceAzureOpenAITaskType = 'completion' | 'text_embedding' -export type InferenceCohereEmbeddingType = 'byte' | 'float' | 'int8' +export type InferenceCohereEmbeddingType = 'binary' | 'bit' | 'byte' | 'float' | 'int8' export type InferenceCohereInputType = 'classification' | 'clustering' | 'ingest' | 'search' @@ -13239,6 +13239,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 @@ -13352,6 +13357,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 { @@ -13473,7 +13480,7 @@ export interface InferencePutAlibabacloudRequest extends RequestBase { task_settings?: InferenceAlibabaCloudTaskSettings } -export type InferencePutAlibabacloudResponse = InferenceInferenceEndpointInfo +export type InferencePutAlibabacloudResponse = InferenceInferenceEndpointInfoAlibabaCloudAI export interface InferencePutAmazonbedrockRequest extends RequestBase { task_type: InferenceAmazonBedrockTaskType diff --git a/src/api/typesWithBodyKey.ts b/src/api/typesWithBodyKey.ts index c626df5ea..1f8812953 100644 --- a/src/api/typesWithBodyKey.ts +++ b/src/api/typesWithBodyKey.ts @@ -13328,7 +13328,7 @@ export interface InferenceAzureOpenAITaskSettings { export type InferenceAzureOpenAITaskType = 'completion' | 'text_embedding' -export type InferenceCohereEmbeddingType = 'byte' | 'float' | 'int8' +export type InferenceCohereEmbeddingType = 'binary' | 'bit' | 'byte' | 'float' | 'int8' export type InferenceCohereInputType = 'classification' | 'clustering' | 'ingest' | 'search' @@ -13481,6 +13481,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 @@ -13594,6 +13599,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 { @@ -13726,7 +13733,7 @@ export interface InferencePutAlibabacloudRequest extends RequestBase { } } -export type InferencePutAlibabacloudResponse = InferenceInferenceEndpointInfo +export type InferencePutAlibabacloudResponse = InferenceInferenceEndpointInfoAlibabaCloudAI export interface InferencePutAmazonbedrockRequest extends RequestBase { task_type: InferenceAmazonBedrockTaskType