n8n-nodes-github-copilot 4.4.10 → 4.4.11
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.
|
@@ -128,10 +128,17 @@ class GitHubCopilotOpenAI {
|
|
|
128
128
|
mimeType = detected;
|
|
129
129
|
}
|
|
130
130
|
else {
|
|
131
|
+
if (mimeType === 'application/pdf') {
|
|
132
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `❌ Unsupported File Type: PDF files are not supported by the GitHub Copilot Vision API. Please convert the PDF to an image (JPEG, PNG, WEBP) or extract the text content before sending.`, { itemIndex: i });
|
|
133
|
+
}
|
|
131
134
|
mimeType = 'image/jpeg';
|
|
132
135
|
console.warn(`⚠️ Could not detect image type for '${keyToUse}', defaulting to image/jpeg`);
|
|
133
136
|
}
|
|
134
137
|
}
|
|
138
|
+
const allowedMimeTypes = ['image/png', 'image/jpeg', 'image/gif', 'image/webp'];
|
|
139
|
+
if (!allowedMimeTypes.includes(mimeType)) {
|
|
140
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `❌ Unsupported Image Format: '${mimeType}'. The API only supports: ${allowedMimeTypes.map(t => t.replace('image/', '')).join(', ')}.`, { itemIndex: i });
|
|
141
|
+
}
|
|
135
142
|
const base64 = buffer.toString('base64');
|
|
136
143
|
const dataUrl = `data:${mimeType};base64,${base64}`;
|
|
137
144
|
const contentArray = [];
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-github-copilot",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.11",
|
|
4
4
|
"description": "n8n community node for GitHub Copilot with CLI integration, Chat API access, and AI Chat Model for workflows with full tools and function calling support - access GPT-5, Claude, Gemini and more using your Copilot subscription",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/sufficit/n8n-nodes-github-copilot",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-github-copilot",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.11",
|
|
4
4
|
"description": "n8n community node for GitHub Copilot with CLI integration, Chat API access, and AI Chat Model for workflows with full tools and function calling support - access GPT-5, Claude, Gemini and more using your Copilot subscription",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/sufficit/n8n-nodes-github-copilot",
|