@devvibex/aiflow 1.0.5 → 1.0.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvibex/aiflow",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "First-party LLM gateway SDK for apps generated on the VibeX platform — chat, streaming, image generation and embeddings without shipping any third-party API key.",
5
5
  "keywords": [
6
6
  "ai",
package/src/index.d.ts CHANGED
@@ -79,6 +79,8 @@ export interface ImageRequest {
79
79
  model?: string;
80
80
  size?: '512x512' | '1024x1024' | '1024x1792' | string;
81
81
  n?: number;
82
+ image?: string;
83
+ images?: string[];
82
84
  signal?: AbortSignal;
83
85
  }
84
86
 
@@ -99,6 +101,8 @@ export interface VideoRequest {
99
101
  prompt: string;
100
102
  model?: string;
101
103
  aspectRatio?: '16:9' | '9:16' | '1:1' | string;
104
+ image?: string;
105
+ video?: string;
102
106
  signal?: AbortSignal;
103
107
  }
104
108
 
package/src/index.js CHANGED
@@ -244,6 +244,8 @@ export class AIFlowClient {
244
244
  model,
245
245
  size = '1024x1024',
246
246
  n = 1,
247
+ image,
248
+ images,
247
249
  signal,
248
250
  } = {}) {
249
251
  if (!prompt || typeof prompt !== 'string') {
@@ -258,6 +260,8 @@ export class AIFlowClient {
258
260
  prompt,
259
261
  size,
260
262
  n,
263
+ image,
264
+ images,
261
265
  },
262
266
  { signal },
263
267
  );
@@ -272,6 +276,8 @@ export class AIFlowClient {
272
276
  prompt,
273
277
  model,
274
278
  aspectRatio = '16:9',
279
+ image,
280
+ video,
275
281
  signal,
276
282
  } = {}) {
277
283
  if (!prompt || typeof prompt !== 'string') {
@@ -285,6 +291,8 @@ export class AIFlowClient {
285
291
  model: resolvedModel,
286
292
  prompt,
287
293
  aspectRatio,
294
+ image,
295
+ video,
288
296
  },
289
297
  { signal },
290
298
  );