@zodic/shared 0.0.41 → 0.0.43
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { inject } from 'inversify';
|
|
2
|
-
import { ConceptService } from '../services/ConceptService';
|
|
3
2
|
import { ConceptPhase } from '../../types/scopes/legacy';
|
|
3
|
+
import { ConceptService } from '../services/ConceptService';
|
|
4
4
|
|
|
5
5
|
export class ConceptWorkflow {
|
|
6
6
|
constructor(@inject(ConceptService) private conceptService: ConceptService) {}
|
|
@@ -16,7 +16,7 @@ export class ConceptWorkflow {
|
|
|
16
16
|
|
|
17
17
|
try {
|
|
18
18
|
switch (phase) {
|
|
19
|
-
case '
|
|
19
|
+
case 'basic-info':
|
|
20
20
|
await this.conceptService.generateBasicInfo(
|
|
21
21
|
conceptSlug,
|
|
22
22
|
combinationString
|
package/package.json
CHANGED
package/types/scopes/generic.ts
CHANGED
|
@@ -139,3 +139,21 @@ export type ConceptQueueMessage = {
|
|
|
139
139
|
combinationString: string;
|
|
140
140
|
phase: ConceptPhase;
|
|
141
141
|
};
|
|
142
|
+
|
|
143
|
+
export type BatchRequest = {
|
|
144
|
+
messages: Array<{ role: 'system' | 'user' | 'assistant'; content: string }>;
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
export type BatchResponse = {
|
|
148
|
+
id: string;
|
|
149
|
+
status: 'completed' | 'failed';
|
|
150
|
+
result?: {
|
|
151
|
+
choices: Array<{
|
|
152
|
+
message: {
|
|
153
|
+
role: string;
|
|
154
|
+
content: string;
|
|
155
|
+
};
|
|
156
|
+
}>;
|
|
157
|
+
};
|
|
158
|
+
error?: any;
|
|
159
|
+
};
|