gemcap-be-common 1.5.104 → 1.5.106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/models/AiJob.model.d.ts +7 -6
- package/models/AiJob.model.js +9 -20
- package/models/AiJob.model.ts +16 -27
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/models/AiJob.model.d.ts
CHANGED
|
@@ -33,9 +33,10 @@ export interface IAIJob {
|
|
|
33
33
|
taskId: string;
|
|
34
34
|
userId: string;
|
|
35
35
|
status: TTaskStatus;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
inputFiles?: Array<{
|
|
37
|
+
fileId: string;
|
|
38
|
+
aiFileId: string;
|
|
39
|
+
}>;
|
|
39
40
|
resultFiles?: Array<{
|
|
40
41
|
fileId: string;
|
|
41
42
|
anthropicFileId: string;
|
|
@@ -44,9 +45,9 @@ export interface IAIJob {
|
|
|
44
45
|
size?: number;
|
|
45
46
|
}>;
|
|
46
47
|
userPrompt?: string;
|
|
47
|
-
provider
|
|
48
|
-
model
|
|
49
|
-
skillId
|
|
48
|
+
provider?: string;
|
|
49
|
+
model?: string;
|
|
50
|
+
skillId?: string;
|
|
50
51
|
responseText?: string;
|
|
51
52
|
rawResponse?: unknown;
|
|
52
53
|
errorMessage?: string;
|
package/models/AiJob.model.js
CHANGED
|
@@ -19,17 +19,15 @@ exports.AIJobSchema = new mongoose_1.default.Schema({
|
|
|
19
19
|
type: String,
|
|
20
20
|
required: true,
|
|
21
21
|
},
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
type: String,
|
|
32
|
-
required: false,
|
|
22
|
+
inputFiles: [{
|
|
23
|
+
fileId: {
|
|
24
|
+
type: String,
|
|
25
|
+
required: true,
|
|
26
|
+
},
|
|
27
|
+
aiFileId: {
|
|
28
|
+
type: String,
|
|
29
|
+
required: true,
|
|
30
|
+
},
|
|
33
31
|
}],
|
|
34
32
|
resultFiles: [{
|
|
35
33
|
fileId: {
|
|
@@ -55,39 +53,30 @@ exports.AIJobSchema = new mongoose_1.default.Schema({
|
|
|
55
53
|
}],
|
|
56
54
|
userPrompt: {
|
|
57
55
|
type: String,
|
|
58
|
-
required: false,
|
|
59
56
|
},
|
|
60
57
|
provider: {
|
|
61
58
|
type: String,
|
|
62
|
-
required: true,
|
|
63
59
|
},
|
|
64
60
|
model: {
|
|
65
61
|
type: String,
|
|
66
|
-
required: true,
|
|
67
62
|
},
|
|
68
63
|
skillId: {
|
|
69
64
|
type: String,
|
|
70
|
-
required: true,
|
|
71
65
|
},
|
|
72
66
|
responseText: {
|
|
73
67
|
type: String,
|
|
74
|
-
required: false,
|
|
75
68
|
},
|
|
76
69
|
rawResponse: {
|
|
77
70
|
type: mongoose_1.default.Schema.Types.Mixed,
|
|
78
|
-
required: false,
|
|
79
71
|
},
|
|
80
72
|
errorMessage: {
|
|
81
73
|
type: String,
|
|
82
|
-
required: true,
|
|
83
74
|
},
|
|
84
75
|
startedAt: {
|
|
85
76
|
type: Date,
|
|
86
|
-
required: true,
|
|
87
77
|
},
|
|
88
78
|
completedAt: {
|
|
89
79
|
type: Date,
|
|
90
|
-
required: true,
|
|
91
80
|
},
|
|
92
81
|
}, {
|
|
93
82
|
timestamps: { createdAt: true, updatedAt: true },
|
package/models/AiJob.model.ts
CHANGED
|
@@ -9,10 +9,10 @@ export interface IAIJob {
|
|
|
9
9
|
|
|
10
10
|
status: TTaskStatus;
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
inputFiles?: Array<{
|
|
13
|
+
fileId: string;
|
|
14
|
+
aiFileId: string;
|
|
15
|
+
}>;
|
|
16
16
|
|
|
17
17
|
resultFiles?: Array<{
|
|
18
18
|
fileId: string;
|
|
@@ -23,9 +23,9 @@ export interface IAIJob {
|
|
|
23
23
|
}>;
|
|
24
24
|
|
|
25
25
|
userPrompt?: string;
|
|
26
|
-
provider
|
|
27
|
-
model
|
|
28
|
-
skillId
|
|
26
|
+
provider?: string,
|
|
27
|
+
model?: string;
|
|
28
|
+
skillId?: string;
|
|
29
29
|
|
|
30
30
|
responseText?: string;
|
|
31
31
|
rawResponse?: unknown;
|
|
@@ -66,17 +66,15 @@ export const AIJobSchema = new mongoose.Schema<IAIJob, TAIJobModel>(
|
|
|
66
66
|
type: String,
|
|
67
67
|
required: true,
|
|
68
68
|
},
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
type: String,
|
|
79
|
-
required: false,
|
|
69
|
+
inputFiles: [{
|
|
70
|
+
fileId: {
|
|
71
|
+
type: String,
|
|
72
|
+
required: true,
|
|
73
|
+
},
|
|
74
|
+
aiFileId: {
|
|
75
|
+
type: String,
|
|
76
|
+
required: true,
|
|
77
|
+
},
|
|
80
78
|
}],
|
|
81
79
|
|
|
82
80
|
resultFiles: [{
|
|
@@ -104,39 +102,30 @@ export const AIJobSchema = new mongoose.Schema<IAIJob, TAIJobModel>(
|
|
|
104
102
|
|
|
105
103
|
userPrompt: {
|
|
106
104
|
type: String,
|
|
107
|
-
required: false,
|
|
108
105
|
},
|
|
109
106
|
provider: {
|
|
110
107
|
type: String,
|
|
111
|
-
required: true,
|
|
112
108
|
},
|
|
113
109
|
model: {
|
|
114
110
|
type: String,
|
|
115
|
-
required: true,
|
|
116
111
|
},
|
|
117
112
|
skillId: {
|
|
118
113
|
type: String,
|
|
119
|
-
required: true,
|
|
120
114
|
},
|
|
121
115
|
responseText: {
|
|
122
116
|
type: String,
|
|
123
|
-
required: false,
|
|
124
117
|
},
|
|
125
118
|
rawResponse: {
|
|
126
119
|
type: mongoose.Schema.Types.Mixed,
|
|
127
|
-
required: false,
|
|
128
120
|
},
|
|
129
121
|
errorMessage: {
|
|
130
122
|
type: String,
|
|
131
|
-
required: true,
|
|
132
123
|
},
|
|
133
124
|
startedAt: {
|
|
134
125
|
type: Date,
|
|
135
|
-
required: true,
|
|
136
126
|
},
|
|
137
127
|
completedAt: {
|
|
138
128
|
type: Date,
|
|
139
|
-
required: true,
|
|
140
129
|
},
|
|
141
130
|
},
|
|
142
131
|
{
|