n8n-nodes-github-copilot 3.12.3 → 3.12.6
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.
|
@@ -51,10 +51,11 @@ class GitHubCopilotApi {
|
|
|
51
51
|
url: '/models',
|
|
52
52
|
method: 'GET',
|
|
53
53
|
headers: {
|
|
54
|
+
'Accept': 'application/json',
|
|
54
55
|
'User-Agent': 'vscode-copilot',
|
|
55
|
-
'Copilot-Integration-Id': 'vscode-chat',
|
|
56
56
|
'Editor-Version': 'vscode/1.85.0',
|
|
57
57
|
'Editor-Plugin-Version': 'copilot-chat/0.12.0',
|
|
58
|
+
'Content-Type': 'application/json',
|
|
58
59
|
},
|
|
59
60
|
},
|
|
60
61
|
};
|
|
@@ -45,11 +45,8 @@ async function makeGitHubCopilotRequest(context, endpoint, body, credentialType
|
|
|
45
45
|
'Content-Type': 'application/json',
|
|
46
46
|
'Accept': 'application/json',
|
|
47
47
|
'User-Agent': 'vscode-copilot',
|
|
48
|
-
'Copilot-Integration-Id': 'vscode-chat',
|
|
49
48
|
'Editor-Version': 'vscode/1.85.0',
|
|
50
49
|
'Editor-Plugin-Version': 'copilot-chat/0.12.0',
|
|
51
|
-
'X-Request-Id': `n8n-${Date.now()}-${Math.random().toString(36).substring(7)}`,
|
|
52
|
-
'Openai-Intent': 'conversation-panel',
|
|
53
50
|
};
|
|
54
51
|
if (hasMedia) {
|
|
55
52
|
headers['Copilot-Vision-Request'] = 'true';
|
|
@@ -63,7 +60,7 @@ async function makeGitHubCopilotRequest(context, endpoint, body, credentialType
|
|
|
63
60
|
const response = await fetch(`https://api.githubcopilot.com${endpoint}`, options);
|
|
64
61
|
if (!response.ok) {
|
|
65
62
|
const errorText = await response.text();
|
|
66
|
-
const tokenInfo =
|
|
63
|
+
const tokenInfo = token;
|
|
67
64
|
console.error(`❌ GitHub Copilot API Error: ${response.status} ${response.statusText}`);
|
|
68
65
|
console.error(`❌ Error details: ${errorText}`);
|
|
69
66
|
console.error(`❌ Used credential type: ${credentialType}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-github-copilot",
|
|
3
|
-
"version": "3.12.
|
|
3
|
+
"version": "3.12.6",
|
|
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",
|