n8n-nodes-github-copilot 4.4.10 → 4.4.12

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,8 +128,10 @@ class GitHubCopilotOpenAI {
128
128
  mimeType = detected;
129
129
  }
130
130
  else {
131
- mimeType = 'image/jpeg';
132
- console.warn(`⚠️ Could not detect image type for '${keyToUse}', defaulting to image/jpeg`);
131
+ console.warn(`⚠️ Could not detect image type for '${keyToUse}', defaulting to 'image/jpeg' or keeping original '${mimeType}'`);
132
+ if (mimeType === 'application/octet-stream') {
133
+ mimeType = 'image/jpeg';
134
+ }
133
135
  }
134
136
  }
135
137
  const base64 = buffer.toString('base64');
@@ -161,6 +163,9 @@ class GitHubCopilotOpenAI {
161
163
  console.log(`📎 Attached binary file '${keyToUse}' (${mimeType}) as image_url`);
162
164
  }
163
165
  catch (err) {
166
+ if (err instanceof n8n_workflow_1.NodeOperationError) {
167
+ throw err;
168
+ }
164
169
  console.error(`❌ Failed to read binary data for '${keyToUse}':`, err);
165
170
  throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Failed to read binary file '${keyToUse}'. Ensure the binary data exists.`, { itemIndex: i });
166
171
  }
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-github-copilot",
3
- "version": "4.4.10",
3
+ "version": "4.4.12",
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.10",
3
+ "version": "4.4.12",
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",