n8n-nodes-vlm 3.2.0 → 3.2.1
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.
|
@@ -191,6 +191,9 @@ class VLMComplexityWorkflow {
|
|
|
191
191
|
const base64Field = options.base64Field || 'data';
|
|
192
192
|
const outputBase64Field = options.outputBase64Field || '';
|
|
193
193
|
const outputBase64Format = options.outputBase64Format || 'raw';
|
|
194
|
+
// DEBUG: Log options to diagnose format bug
|
|
195
|
+
this.logger.debug(`VLM DEBUG OPTIONS: imageSource='${imageSource}', outputBase64Format='${outputBase64Format}', outputBase64Field='${outputBase64Field}'`);
|
|
196
|
+
this.logger.debug(`VLM DEBUG: outputBase64Format === 'raw' ? ${outputBase64Format === 'raw'}`);
|
|
194
197
|
// Verify server has classifier capability (optional check)
|
|
195
198
|
const status = await (0, vlm_logic_1.checkServerStatus)(this, serverUrl, timeout);
|
|
196
199
|
if (status.status === 'error') {
|
|
@@ -267,7 +270,12 @@ class VLMComplexityWorkflow {
|
|
|
267
270
|
});
|
|
268
271
|
this.logger.debug(`Item ${i}: Classified as ${classification.complexity} (confidence: ${classification.confidence})`);
|
|
269
272
|
// Determine base64 output value based on format preference
|
|
273
|
+
// DEBUG: Log values before output decision
|
|
274
|
+
this.logger.debug(`VLM DEBUG OUTPUT: rawBase64 defined=${!!rawBase64}, rawBase64 prefix='${rawBase64 === null || rawBase64 === void 0 ? void 0 : rawBase64.substring(0, 25)}...'`);
|
|
275
|
+
this.logger.debug(`VLM DEBUG OUTPUT: base64Image prefix='${base64Image === null || base64Image === void 0 ? void 0 : base64Image.substring(0, 35)}...'`);
|
|
276
|
+
this.logger.debug(`VLM DEBUG OUTPUT: choosing ${outputBase64Format === 'raw' ? 'rawBase64' : 'base64Image'}`);
|
|
270
277
|
const outputBase64Value = outputBase64Format === 'raw' ? rawBase64 : base64Image;
|
|
278
|
+
this.logger.debug(`VLM DEBUG OUTPUT: outputBase64Value prefix='${outputBase64Value === null || outputBase64Value === void 0 ? void 0 : outputBase64Value.substring(0, 35)}...'`);
|
|
271
279
|
// Build output item with BOTH json AND binary
|
|
272
280
|
const outputItem = {
|
|
273
281
|
json: {
|
package/package.json
CHANGED