17
17
* under the License.
18
18
*/
19
19
20
- import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
21
- import { integer } from '@_types/Numeric'
22
- import { TaskType , TaskTypeJinaAi , TaskTypeAlibabaCloudAI } from '../_types/TaskType'
20
+ import { UserDefinedValue } from "@spec_utils/UserDefinedValue" ;
21
+ import { integer } from "@_types/Numeric" ;
22
+ import {
23
+ TaskType ,
24
+ TaskTypeJinaAi ,
25
+ TaskTypeAlibabaCloudAI ,
26
+ } from "../_types/TaskType" ;
23
27
24
28
/**
25
29
* Configuration options when storing the inference endpoint
@@ -28,19 +32,19 @@ export class InferenceEndpoint {
28
32
/**
29
33
* Chunking configuration object
30
34
*/
31
- chunking_settings ?: InferenceChunkingSettings
35
+ chunking_settings ?: InferenceChunkingSettings ;
32
36
/**
33
37
* The service type
34
38
*/
35
- service : string
39
+ service : string ;
36
40
/**
37
41
* Settings specific to the service
38
42
*/
39
- service_settings : ServiceSettings
43
+ service_settings : ServiceSettings ;
40
44
/**
41
45
* Task settings specific to the service and task type
42
46
*/
43
- task_settings ?: TaskSettings
47
+ task_settings ?: TaskSettings ;
44
48
}
45
49
46
50
/**
@@ -50,33 +54,33 @@ export class InferenceEndpointInfo extends InferenceEndpoint {
50
54
/**
51
55
* The inference Id
52
56
*/
53
- inference_id : string
57
+ inference_id : string ;
54
58
/**
55
59
* The task type
56
60
*/
57
- task_type : TaskType
61
+ task_type : TaskType ;
58
62
}
59
63
60
64
export class InferenceEndpointInfoJinaAi extends InferenceEndpoint {
61
65
/**
62
66
* The inference Id
63
67
*/
64
- inference_id : string
68
+ inference_id : string ;
65
69
/**
66
70
* The task type
67
71
*/
68
- task_type : TaskTypeJinaAi
72
+ task_type : TaskTypeJinaAi ;
69
73
}
70
74
71
75
export class InferenceEndpointInfoAlibabaCloudAI extends InferenceEndpoint {
72
76
/**
73
77
* The inference Id
74
78
*/
75
- inference_id : string
79
+ inference_id : string ;
76
80
/**
77
81
* The task type
78
82
*/
79
- task_type : TaskTypeAlibabaCloudAI
83
+ task_type : TaskTypeAlibabaCloudAI ;
80
84
}
81
85
82
86
/**
@@ -88,35 +92,35 @@ export class InferenceChunkingSettings {
88
92
* This value cannot be higher than `300` or lower than `20` (for `sentence` strategy) or `10` (for `word` strategy).
89
93
* @server_default 250
90
94
*/
91
- max_chunk_size ?: integer
95
+ max_chunk_size ?: integer ;
92
96
/**
93
97
* The number of overlapping words for chunks.
94
98
* It is applicable only to a `word` chunking strategy.
95
99
* This value cannot be higher than half the `max_chunk_size` value.
96
100
* @server_default 100
97
101
*/
98
- overlap ?: integer
102
+ overlap ?: integer ;
99
103
/**
100
104
* The number of overlapping sentences for chunks.
101
105
* It is applicable only for a `sentence` chunking strategy.
102
106
* It can be either `1` or `0`.
103
107
* @server_default 1
104
108
*/
105
- sentence_overlap ?: integer
109
+ sentence_overlap ?: integer ;
106
110
/**
107
111
* The chunking strategy: `sentence` or `word`.
108
112
* @server_default sentence
109
113
*/
110
- strategy ?: string
114
+ strategy ?: string ;
111
115
}
112
116
113
- export type ServiceSettings = UserDefinedValue
117
+ export type ServiceSettings = UserDefinedValue ;
114
118
115
- export type TaskSettings = UserDefinedValue
119
+ export type TaskSettings = UserDefinedValue ;
116
120
117
121
export class RateLimitSetting {
118
122
/**
119
123
* The number of requests allowed per minute.
120
124
*/
121
- requests_per_minute ?: integer
125
+ requests_per_minute ?: integer ;
122
126
}
0 commit comments