n8n-nodes-github-copilot 3.38.15 → 3.38.16
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.
|
@@ -91,48 +91,46 @@ class GitHubCopilotChatAPI {
|
|
|
91
91
|
content: systemMessage,
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
|
-
let userContent = userMessage;
|
|
95
94
|
if (includeMedia) {
|
|
96
95
|
const mediaSource = this.getNodeParameter("mediaSource", i);
|
|
97
96
|
const mediaFile = this.getNodeParameter("mediaFile", i, "");
|
|
98
97
|
const mediaUrl = this.getNodeParameter("mediaUrl", i, "");
|
|
99
98
|
const mediaBinaryProperty = this.getNodeParameter("mediaBinaryProperty", i, "");
|
|
100
|
-
const contentArray = [];
|
|
101
99
|
if (userMessage.trim()) {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
100
|
+
messages.push({
|
|
101
|
+
role: "user",
|
|
102
|
+
content: userMessage,
|
|
105
103
|
});
|
|
106
104
|
}
|
|
107
105
|
try {
|
|
108
106
|
const mediaResult = await (0, mediaDetection_1.processMediaFile)(this, i, mediaSource, mediaFile, mediaUrl, mediaBinaryProperty);
|
|
109
107
|
if (mediaResult.type === "image" && mediaResult.dataUrl) {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
},
|
|
108
|
+
messages.push({
|
|
109
|
+
role: "user",
|
|
110
|
+
content: mediaResult.dataUrl,
|
|
111
|
+
type: "file",
|
|
115
112
|
});
|
|
116
113
|
}
|
|
117
114
|
else {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
115
|
+
messages.push({
|
|
116
|
+
role: "user",
|
|
117
|
+
content: `[Image processing failed: ${mediaResult.description}]`,
|
|
121
118
|
});
|
|
122
119
|
}
|
|
123
120
|
}
|
|
124
121
|
catch (error) {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
122
|
+
messages.push({
|
|
123
|
+
role: "user",
|
|
124
|
+
content: `[Media processing error: ${error instanceof Error ? error.message : "Unknown error"}]`,
|
|
128
125
|
});
|
|
129
126
|
}
|
|
130
|
-
userContent = contentArray;
|
|
131
127
|
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
128
|
+
else {
|
|
129
|
+
messages.push({
|
|
130
|
+
role: "user",
|
|
131
|
+
content: userMessage,
|
|
132
|
+
});
|
|
133
|
+
}
|
|
136
134
|
const requestBody = {
|
|
137
135
|
model,
|
|
138
136
|
messages,
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-github-copilot",
|
|
3
|
-
"version": "3.38.
|
|
3
|
+
"version": "3.38.16",
|
|
4
4
|
"description": "n8n community node for GitHub Copilot with CLI integration, Chat API access, and AI Chat Model for workflows - 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": "3.38.
|
|
3
|
+
"version": "3.38.16",
|
|
4
4
|
"description": "n8n community node for GitHub Copilot with CLI integration, Chat API access, and AI Chat Model for workflows - 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",
|