@mizchi/vlmkit-ai 0.23.0 → 0.23.2

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.
@@ -3,9 +3,12 @@ type ImageGenSize = "1024x1024" | "1024x1536" | "1536x1024" | "auto";
3
3
  type ImageGenQuality = "low" | "medium" | "high" | "auto";
4
4
  type ImageGenOutputFormat = "png" | "jpeg" | "webp";
5
5
  type ImageGenBackground = "opaque" | "transparent" | "auto";
6
+ /** The figure bench's choice: 3/3 on its briefs at the lowest price measured (2026-09-30). */
7
+ declare const IMAGE_GEN_DEFAULT_MODEL = "openai/gpt-image-2.5-flare";
6
8
  interface ImageGenModel {
7
9
  id: string;
8
- provider: "openai";
10
+ /** `openai`: api.openai.com + OPENAI_API_KEY. `openrouter`: openrouter.ai + OPENROUTER_API_KEY. */
11
+ provider: "openai" | "openrouter";
9
12
  /** USD per 1M tokens (matches OpenAI's published pricing table). */
10
13
  costPer1MInputTextTokens: number;
11
14
  costPer1MInputImageTokens: number;
@@ -18,6 +21,14 @@ interface ImageGenRequest {
18
21
  n?: number;
19
22
  outputFormat?: ImageGenOutputFormat;
20
23
  background?: ImageGenBackground;
24
+ /** OpenRouter only (e.g. `16:9`); the OpenAI route takes `size`. */
25
+ aspectRatio?: string;
26
+ /**
27
+ * OpenRouter only: images the model draws from — a style to match, a subject to edit. URLs or
28
+ * `data:` URLs. Sent as `input_references`, which takes chat-style `image_url` parts (a bare
29
+ * string or `{ url }` is a 400).
30
+ */
31
+ inputReferences?: string[];
21
32
  }
22
33
  interface ImageGenUsage {
23
34
  inputTextTokens: number;
@@ -27,10 +38,26 @@ interface ImageGenUsage {
27
38
  interface ImageGenResponse {
28
39
  model: string;
29
40
  images: Uint8Array[];
41
+ /** One per image when the API names it (`image/png`, `image/svg+xml`, …). */
42
+ mediaTypes: (string | null)[];
30
43
  usage: ImageGenUsage | null;
31
44
  costUsd: number;
32
45
  latencyMs: number;
33
46
  }
47
+ interface OpenRouterImageBody {
48
+ model: string;
49
+ prompt: string;
50
+ n: number;
51
+ aspect_ratio?: string;
52
+ quality?: ImageGenQuality;
53
+ background?: ImageGenBackground;
54
+ input_references?: {
55
+ type: "image_url";
56
+ image_url: {
57
+ url: string;
58
+ };
59
+ }[];
60
+ }
34
61
  interface ImageGenRequestBody {
35
62
  model: string;
36
63
  prompt: string;
@@ -46,13 +73,20 @@ interface ImageGenClient {
46
73
  }
47
74
  declare function listImageGenModels(): ImageGenModel[];
48
75
  declare function resolveImageGenModel(id: string): ImageGenModel;
76
+ /** `VLMKIT_IMAGE_MODEL`, else the bench's default. */
77
+ declare function defaultImageGenModelId(env?: Record<string, string | undefined>): string;
49
78
  declare function buildGenerationBody(model: ImageGenModel, req: ImageGenRequest): ImageGenRequestBody;
79
+ declare function buildOpenRouterBody(model: ImageGenModel, req: ImageGenRequest): OpenRouterImageBody;
50
80
  interface RawGenerationResponse {
51
81
  data?: Array<{
52
82
  b64_json?: string;
53
83
  url?: string;
84
+ media_type?: string;
54
85
  }>;
55
86
  usage?: {
87
+ /** OpenRouter: what the call was billed, in USD. */cost?: number;
88
+ prompt_tokens?: number;
89
+ completion_tokens?: number;
56
90
  input_tokens?: number;
57
91
  output_tokens?: number;
58
92
  total_tokens?: number;
@@ -64,7 +98,10 @@ interface RawGenerationResponse {
64
98
  }
65
99
  interface ParsedGeneration {
66
100
  images: Uint8Array[];
101
+ mediaTypes: (string | null)[];
67
102
  usage: ImageGenUsage | null;
103
+ /** The provider's own figure (OpenRouter `usage.cost`), when it gives one. */
104
+ reportedCostUsd: number | null;
68
105
  }
69
106
  declare function parseGenerationResponse(json: RawGenerationResponse): ParsedGeneration;
70
107
  declare function estimateImageGenCost(model: ImageGenModel, usage: ImageGenUsage | null): number;
@@ -74,6 +111,7 @@ interface CreateImageGenClientOptions {
74
111
  /** Override the API base URL (for tests / proxies). */
75
112
  baseUrl?: string;
76
113
  }
77
- declare function createImageGenClient(modelOrId: ImageGenModel | string, options?: CreateImageGenClientOptions): ImageGenClient;
114
+ /** With no model: `VLMKIT_IMAGE_MODEL`, else `IMAGE_GEN_DEFAULT_MODEL`. */
115
+ declare function createImageGenClient(modelOrId?: ImageGenModel | string, options?: CreateImageGenClientOptions): ImageGenClient;
78
116
  //#endregion
79
- export { CreateImageGenClientOptions, ImageGenBackground, ImageGenClient, ImageGenModel, ImageGenOutputFormat, ImageGenQuality, ImageGenRequest, ImageGenRequestBody, ImageGenResponse, ImageGenSize, ImageGenUsage, ParsedGeneration, buildGenerationBody, createImageGenClient, estimateImageGenCost, listImageGenModels, parseGenerationResponse, resolveImageGenModel };
117
+ export { CreateImageGenClientOptions, IMAGE_GEN_DEFAULT_MODEL, ImageGenBackground, ImageGenClient, ImageGenModel, ImageGenOutputFormat, ImageGenQuality, ImageGenRequest, ImageGenRequestBody, ImageGenResponse, ImageGenSize, ImageGenUsage, OpenRouterImageBody, ParsedGeneration, buildGenerationBody, buildOpenRouterBody, createImageGenClient, defaultImageGenModelId, estimateImageGenCost, listImageGenModels, parseGenerationResponse, resolveImageGenModel };
@@ -1,7 +1,14 @@
1
1
  import { VrtConfigError } from "./errors.mjs";
2
2
  //#region src/image-gen-client.ts
3
3
  /**
4
- * Image generation client (OpenAI gpt-image-2).
4
+ * Image generation client: OpenRouter's Images API (the default route) or the OpenAI Images API.
5
+ *
6
+ * `IMAGE_GEN_DEFAULT_MODEL` is the model the figure bench chose
7
+ * (`src/experiments/benchmark/image-gen/`, evaluation saved under
8
+ * `docs/reports/data/2026-09-30-image-gen/`); `VLMKIT_IMAGE_MODEL` overrides it. Any
9
+ * `vendor/model` id is an OpenRouter model and needs `OPENROUTER_API_KEY`; its cost is the one
10
+ * OpenRouter reports in `usage.cost`. The two bare ids in the registry (`gpt-image-2`, the dated
11
+ * snapshot) call `api.openai.com` directly with `OPENAI_API_KEY`.
5
12
  *
6
13
  * Mirrors the vlm-client / llm-client split: a small registry of known
7
14
  * models, pure builders + parsers that can be unit-tested without a network
@@ -18,6 +25,8 @@ import { VrtConfigError } from "./errors.mjs";
18
25
  * `/v1/images/edits`) are intentionally out of scope here; add a separate
19
26
  * `editImage` method if/when a caller needs it.
20
27
  */
28
+ /** The figure bench's choice: 3/3 on its briefs at the lowest price measured (2026-09-30). */
29
+ const IMAGE_GEN_DEFAULT_MODEL = "openai/gpt-image-2.5-flare";
21
30
  const IMAGE_GEN_MODELS = [{
22
31
  id: "gpt-image-2",
23
32
  provider: "openai",
@@ -56,10 +65,22 @@ const VALID_BACKGROUNDS = new Set([
56
65
  function listImageGenModels() {
57
66
  return IMAGE_GEN_MODELS.map((m) => ({ ...m }));
58
67
  }
68
+ const OPENROUTER_ID = /^[a-z0-9][a-z0-9-]*\/[a-z0-9][a-z0-9.:\-]*$/;
59
69
  function resolveImageGenModel(id) {
60
70
  const hit = IMAGE_GEN_MODELS.find((m) => m.id === id);
61
- if (!hit) throw new VrtConfigError("INVALID_MODEL", `Unknown image generation model: "${id}". Known: ${IMAGE_GEN_MODELS.map((m) => m.id).join(", ")}`);
62
- return { ...hit };
71
+ if (hit) return { ...hit };
72
+ if (OPENROUTER_ID.test(id)) return {
73
+ id,
74
+ provider: "openrouter",
75
+ costPer1MInputTextTokens: 0,
76
+ costPer1MInputImageTokens: 0,
77
+ costPer1MOutputImageTokens: 0
78
+ };
79
+ throw new VrtConfigError("INVALID_MODEL", `Unknown image generation model: "${id}". Known: ${IMAGE_GEN_MODELS.map((m) => m.id).join(", ")}, or any OpenRouter id (vendor/model)`);
80
+ }
81
+ /** `VLMKIT_IMAGE_MODEL`, else the bench's default. */
82
+ function defaultImageGenModelId(env = process.env) {
83
+ return env.VLMKIT_IMAGE_MODEL?.trim() || "openai/gpt-image-2.5-flare";
63
84
  }
64
85
  function buildGenerationBody(model, req) {
65
86
  if (!req.prompt || !req.prompt.trim()) throw new VrtConfigError("INVALID_REQUEST", "image-gen: prompt must be a non-empty string");
@@ -83,20 +104,41 @@ function buildGenerationBody(model, req) {
83
104
  background
84
105
  };
85
106
  }
107
+ function buildOpenRouterBody(model, req) {
108
+ if (!req.prompt || !req.prompt.trim()) throw new VrtConfigError("INVALID_REQUEST", "image-gen: prompt must be a non-empty string");
109
+ const n = req.n ?? 1;
110
+ if (!Number.isInteger(n) || n <= 0) throw new VrtConfigError("INVALID_REQUEST", `image-gen: n must be a positive integer, got ${n}`);
111
+ return {
112
+ model: model.id,
113
+ prompt: req.prompt,
114
+ n,
115
+ ...req.aspectRatio ? { aspect_ratio: req.aspectRatio } : {},
116
+ ...req.quality ? { quality: req.quality } : {},
117
+ ...req.background ? { background: req.background } : {},
118
+ ...req.inputReferences?.length ? { input_references: req.inputReferences.map((url) => ({
119
+ type: "image_url",
120
+ image_url: { url }
121
+ })) } : {}
122
+ };
123
+ }
86
124
  function parseGenerationResponse(json) {
87
125
  const images = [];
126
+ const mediaTypes = [];
88
127
  for (const entry of json.data ?? []) {
89
128
  if (!entry || typeof entry.b64_json !== "string") continue;
90
129
  images.push(new Uint8Array(Buffer.from(entry.b64_json, "base64")));
130
+ mediaTypes.push(entry.media_type ?? null);
91
131
  }
92
132
  const u = json.usage;
93
133
  return {
94
134
  images,
135
+ mediaTypes,
95
136
  usage: u ? {
96
- inputTextTokens: u.input_tokens_details?.text_tokens ?? u.input_tokens ?? 0,
137
+ inputTextTokens: u.input_tokens_details?.text_tokens ?? u.input_tokens ?? u.prompt_tokens ?? 0,
97
138
  inputImageTokens: u.input_tokens_details?.image_tokens ?? 0,
98
- outputTokens: u.output_tokens ?? 0
99
- } : null
139
+ outputTokens: u.output_tokens ?? u.completion_tokens ?? 0
140
+ } : null,
141
+ reportedCostUsd: typeof u?.cost === "number" ? u.cost : null
100
142
  };
101
143
  }
102
144
  function estimateImageGenCost(model, usage) {
@@ -104,18 +146,23 @@ function estimateImageGenCost(model, usage) {
104
146
  const cost = (usage.inputTextTokens * model.costPer1MInputTextTokens + usage.inputImageTokens * model.costPer1MInputImageTokens + usage.outputTokens * model.costPer1MOutputImageTokens) / 1e6;
105
147
  return Math.round(cost * 1e6) / 1e6;
106
148
  }
107
- function createImageGenClient(modelOrId, options) {
149
+ /** With no model: `VLMKIT_IMAGE_MODEL`, else `IMAGE_GEN_DEFAULT_MODEL`. */
150
+ function createImageGenClient(modelOrId = defaultImageGenModelId(), options) {
108
151
  const model = typeof modelOrId === "string" ? resolveImageGenModel(modelOrId) : modelOrId;
152
+ const openRouter = model.provider === "openrouter";
153
+ const keyName = openRouter ? "OPENROUTER_API_KEY" : "OPENAI_API_KEY";
109
154
  const throwIfMissing = options?.throwIfMissing ?? true;
110
- const apiKey = options?.apiKey ?? process.env.OPENAI_API_KEY;
111
- if (!apiKey && throwIfMissing) throw new VrtConfigError("MISSING_KEY", `OPENAI_API_KEY is required for ${model.id}`);
112
- const baseUrl = options?.baseUrl ?? "https://api.openai.com";
155
+ const apiKey = options?.apiKey ?? process.env[keyName];
156
+ if (!apiKey && throwIfMissing) throw new VrtConfigError("MISSING_KEY", `${keyName} is required for ${model.id}`);
157
+ const baseUrl = options?.baseUrl ?? (openRouter ? "https://openrouter.ai" : "https://api.openai.com");
158
+ const path = openRouter ? "/api/v1/images" : "/v1/images/generations";
159
+ const provider = openRouter ? "OpenRouter" : "OpenAI";
113
160
  return {
114
161
  model,
115
162
  async generate(req) {
116
- const body = buildGenerationBody(model, req);
163
+ const body = openRouter ? buildOpenRouterBody(model, req) : buildGenerationBody(model, req);
117
164
  const started = Date.now();
118
- const res = await fetch(`${baseUrl}/v1/images/generations`, {
165
+ const res = await fetch(`${baseUrl}${path}`, {
119
166
  method: "POST",
120
167
  headers: {
121
168
  Authorization: `Bearer ${apiKey ?? ""}`,
@@ -128,7 +175,7 @@ function createImageGenClient(modelOrId, options) {
128
175
  try {
129
176
  json = JSON.parse(text);
130
177
  } catch {
131
- throw new Error(`image-gen: non-JSON response from OpenAI (status ${res.status}): ${text.slice(0, 200)}`);
178
+ throw new Error(`image-gen: non-JSON response from ${provider} (status ${res.status}): ${text.slice(0, 200)}`);
132
179
  }
133
180
  if (!res.ok) {
134
181
  const message = json.error?.message ?? text.slice(0, 200);
@@ -138,12 +185,13 @@ function createImageGenClient(modelOrId, options) {
138
185
  return {
139
186
  model: model.id,
140
187
  images: parsed.images,
188
+ mediaTypes: parsed.mediaTypes,
141
189
  usage: parsed.usage,
142
- costUsd: estimateImageGenCost(model, parsed.usage),
190
+ costUsd: parsed.reportedCostUsd ?? estimateImageGenCost(model, parsed.usage),
143
191
  latencyMs: Date.now() - started
144
192
  };
145
193
  }
146
194
  };
147
195
  }
148
196
  //#endregion
149
- export { buildGenerationBody, createImageGenClient, estimateImageGenCost, listImageGenModels, parseGenerationResponse, resolveImageGenModel };
197
+ export { IMAGE_GEN_DEFAULT_MODEL, buildGenerationBody, buildOpenRouterBody, createImageGenClient, defaultImageGenModelId, estimateImageGenCost, listImageGenModels, parseGenerationResponse, resolveImageGenModel };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { VrtConfigError, VrtConfigErrorCode } from "./errors.mjs";
2
- import { CreateImageGenClientOptions, ImageGenBackground, ImageGenClient, ImageGenModel, ImageGenOutputFormat, ImageGenQuality, ImageGenRequest, ImageGenRequestBody, ImageGenResponse, ImageGenSize, ImageGenUsage, ParsedGeneration, buildGenerationBody, createImageGenClient, estimateImageGenCost, listImageGenModels, parseGenerationResponse, resolveImageGenModel } from "./image-gen-client.mjs";
2
+ import { CreateImageGenClientOptions, IMAGE_GEN_DEFAULT_MODEL, ImageGenBackground, ImageGenClient, ImageGenModel, ImageGenOutputFormat, ImageGenQuality, ImageGenRequest, ImageGenRequestBody, ImageGenResponse, ImageGenSize, ImageGenUsage, OpenRouterImageBody, ParsedGeneration, buildGenerationBody, buildOpenRouterBody, createImageGenClient, defaultImageGenModelId, estimateImageGenCost, listImageGenModels, parseGenerationResponse, resolveImageGenModel } from "./image-gen-client.mjs";
3
3
  import { LLMProvider, buildIntent, buildIntentWithLLM, buildReasoningPrompt, extractDiffSemantics, parseDiff } from "./intent.mjs";
4
4
  import { CreateLLMProviderOptions, ImageContent, LLMClientOptions, LLMProviderName, LLMResponse, MessageContent, OPENAI_DEFAULT_MODEL, TextContent, UnifiedLLMClient, createLLMProvider, createUnifiedLLMClient } from "./llm-client.mjs";
5
5
  import { CreateVlmClientOptions, VlmClient, VlmModel, VlmResponse, createVlmClient, fetchVisionModels, isGeminiDirectModel, listGeminiModels, listModels, resolveGeminiModel, resolveModel } from "./vlm-client.mjs";
@@ -9,4 +9,4 @@ import { DEFAULT_IMAGE_BUDGET, ImageBudget, ZoomCoordinates } from "./zoom-geome
9
9
  import { SingleLookResult, VisionChatDriver, ZoomLoopOptions, ZoomLoopResult, parseZoomRequests, runSingleLook, runZoomLoop } from "./zoom-loop.mjs";
10
10
  import { anthropicDriver, geminiDriver, openAiCompatibleDriver } from "./zoom-drivers.mjs";
11
11
  import { ZoomAnalysis, analyzeWithZoom, createZoomDriver } from "./zoom.mjs";
12
- export { type ActualChange, type AnalyzeOptions, type CreateImageGenClientOptions, type CreateLLMProviderOptions, type CreateVlmClientOptions, type CssFix, DEFAULT_IMAGE_BUDGET, type ExpectationMapping, type FixSuggestion, type ImageBudget, type ImageContent, type ImageGenBackground, type ImageGenClient, type ImageGenModel, type ImageGenOutputFormat, type ImageGenQuality, type ImageGenRequest, type ImageGenRequestBody, type ImageGenResponse, type ImageGenSize, type ImageGenUsage, type LLMClientOptions, type LLMProvider, type LLMProviderName, type LLMResponse, type MessageContent, OPENAI_DEFAULT_MODEL, type ParsedGeneration, type PipelineConfig, type ReasoningChain, type ReasoningPipeline, type SingleLookResult, type StructuredDiffReport, type TextContent, type UnifiedLLMClient, type VisionChatDriver, type VisualChange, type VlmClient, type VlmModel, type VlmResponse, VrtConfigError, type VrtConfigErrorCode, type ZoomAnalysis, type ZoomCoordinates, type ZoomLoopOptions, type ZoomLoopResult, analyzeWithZoom, anthropicDriver, buildGenerationBody, buildIntent, buildIntentWithLLM, buildReasoningPrompt, createImageGenClient, createLLMProvider, createReasoningPipeline, createUnifiedLLMClient, createVlmClient, createZoomDriver, estimateImageGenCost, extractDiffSemantics, fetchVisionModels, geminiDriver, isGeminiDirectModel, listGeminiModels, listImageGenModels, listModels, openAiCompatibleDriver, parseDiff, parseGenerationResponse, parseZoomRequests, reasonAboutChanges, resolveGeminiModel, resolveImageGenModel, resolveModel, runSingleLook, runZoomLoop };
12
+ export { type ActualChange, type AnalyzeOptions, type CreateImageGenClientOptions, type CreateLLMProviderOptions, type CreateVlmClientOptions, type CssFix, DEFAULT_IMAGE_BUDGET, type ExpectationMapping, type FixSuggestion, IMAGE_GEN_DEFAULT_MODEL, type ImageBudget, type ImageContent, type ImageGenBackground, type ImageGenClient, type ImageGenModel, type ImageGenOutputFormat, type ImageGenQuality, type ImageGenRequest, type ImageGenRequestBody, type ImageGenResponse, type ImageGenSize, type ImageGenUsage, type LLMClientOptions, type LLMProvider, type LLMProviderName, type LLMResponse, type MessageContent, OPENAI_DEFAULT_MODEL, type OpenRouterImageBody, type ParsedGeneration, type PipelineConfig, type ReasoningChain, type ReasoningPipeline, type SingleLookResult, type StructuredDiffReport, type TextContent, type UnifiedLLMClient, type VisionChatDriver, type VisualChange, type VlmClient, type VlmModel, type VlmResponse, VrtConfigError, type VrtConfigErrorCode, type ZoomAnalysis, type ZoomCoordinates, type ZoomLoopOptions, type ZoomLoopResult, analyzeWithZoom, anthropicDriver, buildGenerationBody, buildIntent, buildIntentWithLLM, buildOpenRouterBody, buildReasoningPrompt, createImageGenClient, createLLMProvider, createReasoningPipeline, createUnifiedLLMClient, createVlmClient, createZoomDriver, defaultImageGenModelId, estimateImageGenCost, extractDiffSemantics, fetchVisionModels, geminiDriver, isGeminiDirectModel, listGeminiModels, listImageGenModels, listModels, openAiCompatibleDriver, parseDiff, parseGenerationResponse, parseZoomRequests, reasonAboutChanges, resolveGeminiModel, resolveImageGenModel, resolveModel, runSingleLook, runZoomLoop };
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { VrtConfigError } from "./errors.mjs";
2
- import { buildGenerationBody, createImageGenClient, estimateImageGenCost, listImageGenModels, parseGenerationResponse, resolveImageGenModel } from "./image-gen-client.mjs";
2
+ import { IMAGE_GEN_DEFAULT_MODEL, buildGenerationBody, buildOpenRouterBody, createImageGenClient, defaultImageGenModelId, estimateImageGenCost, listImageGenModels, parseGenerationResponse, resolveImageGenModel } from "./image-gen-client.mjs";
3
3
  import { OPENAI_DEFAULT_MODEL, createLLMProvider, createUnifiedLLMClient } from "./llm-client.mjs";
4
4
  import { createVlmClient, fetchVisionModels, isGeminiDirectModel, listGeminiModels, listModels, resolveGeminiModel, resolveModel } from "./vlm-client.mjs";
5
5
  import { createReasoningPipeline } from "./reasoning-pipeline.mjs";
@@ -9,4 +9,4 @@ import { DEFAULT_IMAGE_BUDGET } from "./zoom-geometry.mjs";
9
9
  import { parseZoomRequests, runSingleLook, runZoomLoop } from "./zoom-loop.mjs";
10
10
  import { anthropicDriver, geminiDriver, openAiCompatibleDriver } from "./zoom-drivers.mjs";
11
11
  import { analyzeWithZoom, createZoomDriver } from "./zoom.mjs";
12
- export { DEFAULT_IMAGE_BUDGET, OPENAI_DEFAULT_MODEL, VrtConfigError, analyzeWithZoom, anthropicDriver, buildGenerationBody, buildIntent, buildIntentWithLLM, buildReasoningPrompt, createImageGenClient, createLLMProvider, createReasoningPipeline, createUnifiedLLMClient, createVlmClient, createZoomDriver, estimateImageGenCost, extractDiffSemantics, fetchVisionModels, geminiDriver, isGeminiDirectModel, listGeminiModels, listImageGenModels, listModels, openAiCompatibleDriver, parseDiff, parseGenerationResponse, parseZoomRequests, reasonAboutChanges, resolveGeminiModel, resolveImageGenModel, resolveModel, runSingleLook, runZoomLoop };
12
+ export { DEFAULT_IMAGE_BUDGET, IMAGE_GEN_DEFAULT_MODEL, OPENAI_DEFAULT_MODEL, VrtConfigError, analyzeWithZoom, anthropicDriver, buildGenerationBody, buildIntent, buildIntentWithLLM, buildOpenRouterBody, buildReasoningPrompt, createImageGenClient, createLLMProvider, createReasoningPipeline, createUnifiedLLMClient, createVlmClient, createZoomDriver, defaultImageGenModelId, estimateImageGenCost, extractDiffSemantics, fetchVisionModels, geminiDriver, isGeminiDirectModel, listGeminiModels, listImageGenModels, listModels, openAiCompatibleDriver, parseDiff, parseGenerationResponse, parseZoomRequests, reasonAboutChanges, resolveGeminiModel, resolveImageGenModel, resolveModel, runSingleLook, runZoomLoop };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mizchi/vlmkit-ai",
3
- "version": "0.23.0",
3
+ "version": "0.23.2",
4
4
  "description": "VLM / LLM clients, reasoning pipeline, and NLP helpers used by VRT to interpret diff images and natural-language intent.",
5
5
  "license": "MIT",
6
6
  "author": "mizchi",
@@ -38,7 +38,7 @@
38
38
  "dependencies": {
39
39
  "@google/generative-ai": "^0.24.1",
40
40
  "pngjs": "^7.0.0",
41
- "@mizchi/vlmkit-core": "0.23.0"
41
+ "@mizchi/vlmkit-core": "0.23.2"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "pnpm --dir ../.. exec tsdown --config tsdown.packages.config.ts --filter @mizchi/vlmkit-ai",