@devvibex/aiflow 1.0.5 → 1.0.6

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.6",
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,7 @@ export interface VideoRequest {
99
101
  prompt: string;
100
102
  model?: string;
101
103
  aspectRatio?: '16:9' | '9:16' | '1:1' | string;
104
+ image?: string;
102
105
  signal?: AbortSignal;
103
106
  }
104
107
 
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,7 @@ export class AIFlowClient {
272
276
  prompt,
273
277
  model,
274
278
  aspectRatio = '16:9',
279
+ image,
275
280
  signal,
276
281
  } = {}) {
277
282
  if (!prompt || typeof prompt !== 'string') {
@@ -285,6 +290,7 @@ export class AIFlowClient {
285
290
  model: resolvedModel,
286
291
  prompt,
287
292
  aspectRatio,
293
+ image,
288
294
  },
289
295
  { signal },
290
296
  );