n8n-nodes-github-copilot 4.4.12 → 4.4.14
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.
|
@@ -134,6 +134,10 @@ class GitHubCopilotOpenAI {
|
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
+
if (!mimeType.startsWith('image/')) {
|
|
138
|
+
console.warn(`⚠️ Forcing mime type '${mimeType}' to 'image/jpeg' to bypass schema validation (allowing backend to validate content)`);
|
|
139
|
+
mimeType = 'image/jpeg';
|
|
140
|
+
}
|
|
137
141
|
const base64 = buffer.toString('base64');
|
|
138
142
|
const dataUrl = `data:${mimeType};base64,${base64}`;
|
|
139
143
|
const contentArray = [];
|
|
@@ -167,7 +171,8 @@ class GitHubCopilotOpenAI {
|
|
|
167
171
|
throw err;
|
|
168
172
|
}
|
|
169
173
|
console.error(`❌ Failed to read binary data for '${keyToUse}':`, err);
|
|
170
|
-
|
|
174
|
+
const errorMessage = err instanceof Error ? err.message : String(err);
|
|
175
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Failed to read binary file '${keyToUse}': ${errorMessage}`, { itemIndex: i });
|
|
171
176
|
}
|
|
172
177
|
}
|
|
173
178
|
else {
|
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.14",
|
|
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.14",
|
|
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",
|