@zodic/shared 0.0.42 → 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 'name-description-poem':
19
+ case 'basic-info':
20
20
  await this.conceptService.generateBasicInfo(
21
21
  conceptSlug,
22
22
  combinationString
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zodic/shared",
3
- "version": "0.0.42",
3
+ "version": "0.0.43",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -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
+ };
@@ -2,7 +2,7 @@ import { BackendBindings } from './cloudflare';
2
2
  import { Gender } from './generic';
3
3
 
4
4
  export type ConceptPhase =
5
- | 'name-description-poem'
5
+ | 'basic-info'
6
6
  | 'leonardo-prompt'
7
7
  | 'content'
8
8
  | 'images';