n8n-nodes-github-copilot 3.37.5 → 3.37.7
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.
|
@@ -203,9 +203,15 @@ async function consolidatedModelTest(token, enableRetry = true, maxRetries = 3,
|
|
|
203
203
|
details: modelsResponse,
|
|
204
204
|
};
|
|
205
205
|
}
|
|
206
|
-
const
|
|
206
|
+
const allModels = modelsResponse.data;
|
|
207
|
+
const availableModels = allModels.filter((modelItem) => {
|
|
208
|
+
var _a;
|
|
209
|
+
const model = modelItem;
|
|
210
|
+
const modelType = ((_a = model.capabilities) === null || _a === void 0 ? void 0 : _a.type);
|
|
211
|
+
return modelType !== "embeddings";
|
|
212
|
+
});
|
|
207
213
|
const testMessage = "Hello! Please respond with just 'OK' to confirm you're working.";
|
|
208
|
-
console.log(`📊 Testing ${availableModels.length} models, ${testsPerModel} times each...`);
|
|
214
|
+
console.log(`📊 Testing ${availableModels.length} chat models, ${testsPerModel} times each...`);
|
|
209
215
|
for (const modelItem of availableModels) {
|
|
210
216
|
const model = modelItem;
|
|
211
217
|
const modelId = model.id || model.name;
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-github-copilot",
|
|
3
|
-
"version": "3.37.
|
|
3
|
+
"version": "3.37.7",
|
|
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",
|
|
@@ -28,10 +28,10 @@ async function makeGitHubCopilotRequest(context, endpoint, body, hasMedia = fals
|
|
|
28
28
|
console.log(`🔍 ${credentialType} Credentials Debug:`, Object.keys(credentials));
|
|
29
29
|
const githubToken = credentials.token;
|
|
30
30
|
if (!githubToken) {
|
|
31
|
-
throw new Error("GitHub
|
|
31
|
+
throw new Error("GitHub token not found in credentials");
|
|
32
32
|
}
|
|
33
|
-
if (!githubToken.startsWith("gho_")) {
|
|
34
|
-
throw new Error("Invalid GitHub token format. Must start with gho_");
|
|
33
|
+
if (!githubToken.startsWith("ghu_") && !githubToken.startsWith("github_pat_") && !githubToken.startsWith("gho_")) {
|
|
34
|
+
throw new Error("Invalid GitHub token format. Must start with ghu_, github_pat_, or gho_");
|
|
35
35
|
}
|
|
36
36
|
console.log(`🔄 Using GitHub token to generate OAuth token...`);
|
|
37
37
|
let token;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-github-copilot",
|
|
3
|
-
"version": "3.37.
|
|
3
|
+
"version": "3.37.7",
|
|
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",
|