n8n-nodes-vlm 2.0.0 → 2.0.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.
|
@@ -177,10 +177,13 @@ class VLMComplexityClassifier {
|
|
|
177
177
|
const filterComplexity = this.getNodeParameter('filterComplexity', 0, 'both');
|
|
178
178
|
const additionalOptions = this.getNodeParameter('additionalOptions', 0, {});
|
|
179
179
|
const timeout = (_a = additionalOptions.timeout) !== null && _a !== void 0 ? _a : 30000;
|
|
180
|
-
// Verify server has classifier capability
|
|
180
|
+
// Verify server has classifier capability (optional check)
|
|
181
181
|
const status = await (0, vlm_logic_1.checkServerStatus)(this, serverUrl, timeout);
|
|
182
|
-
if (
|
|
183
|
-
|
|
182
|
+
if (status.status === 'error') {
|
|
183
|
+
this.logger.warn(`Could not verify server capabilities at ${serverUrl}/api/status. Proceeding anyway...`);
|
|
184
|
+
}
|
|
185
|
+
else if (!status.hasClassifier) {
|
|
186
|
+
this.logger.warn(`Server at ${serverUrl} does not explicitly report VLM classifier support. Proceeding anyway...`);
|
|
184
187
|
}
|
|
185
188
|
/**
|
|
186
189
|
* Classifier Provider Object
|
|
@@ -17,7 +17,7 @@ class VLMComplexityWorkflow {
|
|
|
17
17
|
icon: 'file:vlm.svg',
|
|
18
18
|
group: ['transform'],
|
|
19
19
|
version: 1,
|
|
20
|
-
subtitle: '={{$parameter["
|
|
20
|
+
subtitle: '={{$parameter["model"]}}',
|
|
21
21
|
description: 'Classify document complexity using Vision-Language Models',
|
|
22
22
|
defaults: {
|
|
23
23
|
name: 'VLM Complexity Workflow',
|
|
@@ -251,10 +251,13 @@ class VLMComplexityWorkflow {
|
|
|
251
251
|
const additionalOptions = this.getNodeParameter('additionalOptions', 0, {});
|
|
252
252
|
const timeout = (_a = additionalOptions.timeout) !== null && _a !== void 0 ? _a : 30000;
|
|
253
253
|
const outputFormat = (_b = additionalOptions.outputFormat) !== null && _b !== void 0 ? _b : 'documents';
|
|
254
|
-
// Verify server has classifier capability
|
|
254
|
+
// Verify server has classifier capability (optional check)
|
|
255
255
|
const status = await (0, vlm_logic_1.checkServerStatus)(this, serverUrl, timeout);
|
|
256
|
-
if (
|
|
257
|
-
|
|
256
|
+
if (status.status === 'error') {
|
|
257
|
+
this.logger.warn(`Could not verify server capabilities at ${serverUrl}/api/status. Proceeding anyway...`);
|
|
258
|
+
}
|
|
259
|
+
else if (!status.hasClassifier) {
|
|
260
|
+
this.logger.warn(`Server at ${serverUrl} does not explicitly report VLM classifier support. Proceeding anyway...`);
|
|
258
261
|
}
|
|
259
262
|
// Extract documents based on source
|
|
260
263
|
let documents = [];
|
package/package.json
CHANGED