Skip to content

Commit 15eff0f

Browse files
kosabogilcawl
andauthored
Adds custom InferenceEndpointInfo class for AlibabaCloudAI (#4424)
* Adds custom InferenceEndpointInfo class for AlibabaCloudAi * Fixes code style issue * Code style fix * Generate output --------- Co-authored-by: lcawl <[email protected]>
1 parent f15ccea commit 15eff0f

File tree

7 files changed

+169
-14
lines changed

7 files changed

+169
-14
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 33 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 33 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 70 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/inference/_types/Services.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@
1919

2020
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2121
import { integer } from '@_types/Numeric'
22-
import { TaskType, TaskTypeJinaAi } from '../_types/TaskType'
22+
import {
23+
TaskType,
24+
TaskTypeAlibabaCloudAI,
25+
TaskTypeJinaAi
26+
} from '../_types/TaskType'
2327

2428
/**
2529
* Configuration options when storing the inference endpoint
@@ -68,6 +72,17 @@ export class InferenceEndpointInfoJinaAi extends InferenceEndpoint {
6872
task_type: TaskTypeJinaAi
6973
}
7074

75+
export class InferenceEndpointInfoAlibabaCloudAI extends InferenceEndpoint {
76+
/**
77+
* The inference Id
78+
*/
79+
inference_id: string
80+
/**
81+
* The task type
82+
*/
83+
task_type: TaskTypeAlibabaCloudAI
84+
}
85+
7186
/**
7287
* Chunking configuration object
7388
*/

specification/inference/_types/TaskType.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,10 @@ export enum TaskTypeJinaAi {
3232
text_embedding,
3333
rerank
3434
}
35+
36+
export enum TaskTypeAlibabaCloudAI {
37+
text_embedding,
38+
rerank,
39+
completion,
40+
sparse_embedding
41+
}

specification/inference/put_alibabacloud/PutAlibabaCloudResponse.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
* under the License.
1818
*/
1919

20-
import { InferenceEndpointInfo } from '@inference/_types/Services'
20+
import { InferenceEndpointInfoAlibabaCloudAI } from '@inference/_types/Services'
2121

2222
export class Response {
2323
/** @codegen_name endpoint_info */
24-
body: InferenceEndpointInfo
24+
body: InferenceEndpointInfoAlibabaCloudAI
2525
}

0 commit comments

Comments
 (0)