File tree Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 1919
2020import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2121import { integer } from '@_types/Numeric'
22- import { TaskType } from '../_types/TaskType'
22+ import { TaskType , TaskTypeJinaAi } from '../_types/TaskType'
2323
2424/**
2525 * Configuration options when storing the inference endpoint
@@ -57,6 +57,17 @@ export class InferenceEndpointInfo extends InferenceEndpoint {
5757 task_type : TaskType
5858}
5959
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+
6071/**
6172 * Chunking configuration object
6273 */
Original file line number Diff line number Diff line change @@ -27,3 +27,8 @@ export enum TaskType {
2727 completion ,
2828 chat_completion
2929}
30+
31+ export enum TaskTypeJinaAi {
32+ text_embedding ,
33+ rerank
34+ }
Original file line number Diff line number Diff line change 1717 * under the License.
1818 */
1919
20- import { InferenceEndpointInfo } from '@inference/_types/Services'
20+ import { InferenceEndpointInfoJinaAi } from '@inference/_types/Services'
2121
2222export class Response {
23- body : InferenceEndpointInfo
23+ body : InferenceEndpointInfoJinaAi
2424}
You can’t perform that action at this time.
0 commit comments