File tree 3 files changed +19
-3
lines changed
3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 19
19
20
20
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
21
21
import { integer } from '@_types/Numeric'
22
- import { TaskType } from '../_types/TaskType'
22
+ import { TaskType , TaskTypeJinaAi } from '../_types/TaskType'
23
23
24
24
/**
25
25
* Configuration options when storing the inference endpoint
@@ -57,6 +57,17 @@ export class InferenceEndpointInfo extends InferenceEndpoint {
57
57
task_type : TaskType
58
58
}
59
59
60
+ export class InferenceEndpointInfoJinaAi extends InferenceEndpoint {
61
+ /**
62
+ * The inference Id
63
+ */
64
+ inference_id : string
65
+ /**
66
+ * The task type
67
+ */
68
+ task_type : TaskTypeJinaAi
69
+ }
70
+
60
71
/**
61
72
* Chunking configuration object
62
73
*/
Original file line number Diff line number Diff line change @@ -27,3 +27,8 @@ export enum TaskType {
27
27
completion ,
28
28
chat_completion
29
29
}
30
+
31
+ export enum TaskTypeJinaAi {
32
+ text_embedding ,
33
+ rerank
34
+ }
Original file line number Diff line number Diff line change 17
17
* under the License.
18
18
*/
19
19
20
- import { InferenceEndpointInfo } from '@inference/_types/Services'
20
+ import { InferenceEndpointInfoJinaAi } from '@inference/_types/Services'
21
21
22
22
export class Response {
23
- body : InferenceEndpointInfo
23
+ body : InferenceEndpointInfoJinaAi
24
24
}
You can’t perform that action at this time.
0 commit comments