n8n-nodes-github-copilot 3.37.2 → 3.37.3
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.
|
@@ -409,15 +409,16 @@ function generateTestRecommendations(testResults) {
|
|
|
409
409
|
});
|
|
410
410
|
return recommendations;
|
|
411
411
|
}
|
|
412
|
-
async function testEmbeddingModels(
|
|
412
|
+
async function testEmbeddingModels(githubToken, enableRetry = true, maxRetries = 3) {
|
|
413
413
|
var _a, _b, _c, _d;
|
|
414
414
|
const testStartTime = Date.now();
|
|
415
415
|
try {
|
|
416
416
|
console.log("🧪 Testing embedding models...");
|
|
417
|
+
const oauthToken = await OAuthTokenManager_1.OAuthTokenManager.getValidOAuthToken(githubToken);
|
|
417
418
|
const modelsUrl = `${GitHubCopilotEndpoints_1.GITHUB_COPILOT_API.URLS.MODELS}`;
|
|
418
419
|
const modelsResponse = await fetch(modelsUrl, {
|
|
419
420
|
method: "GET",
|
|
420
|
-
headers: GitHubCopilotEndpoints_1.GitHubCopilotEndpoints.getAuthHeaders(
|
|
421
|
+
headers: GitHubCopilotEndpoints_1.GitHubCopilotEndpoints.getAuthHeaders(oauthToken),
|
|
421
422
|
});
|
|
422
423
|
if (!modelsResponse.ok) {
|
|
423
424
|
throw new Error(`Failed to fetch models: ${modelsResponse.status}`);
|
|
@@ -454,7 +455,7 @@ async function testEmbeddingModels(token, enableRetry = true, maxRetries = 3) {
|
|
|
454
455
|
model: model.id,
|
|
455
456
|
input: [testText],
|
|
456
457
|
};
|
|
457
|
-
const data = await (0, EmbeddingsApiUtils_1.executeEmbeddingsRequestSimple)(
|
|
458
|
+
const data = await (0, EmbeddingsApiUtils_1.executeEmbeddingsRequestSimple)(oauthToken, requestBody);
|
|
458
459
|
const testDuration = Date.now() - testStart;
|
|
459
460
|
const embeddingLength = ((_c = (_b = (_a = data.data) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.embedding) === null || _c === void 0 ? void 0 : _c.length) || 0;
|
|
460
461
|
modelResults.tests.push({
|
|
@@ -574,9 +575,9 @@ class GitHubCopilotTest {
|
|
|
574
575
|
description: "Test all embedding models (text-embedding-*) with sample text generation",
|
|
575
576
|
},
|
|
576
577
|
{
|
|
577
|
-
name: "
|
|
578
|
+
name: "Test Chat Models",
|
|
578
579
|
value: "consolidatedTest",
|
|
579
|
-
description: "Test all available models 5 times each and generate comprehensive report ⚠️ This test may take up to 2 minutes to complete",
|
|
580
|
+
description: "Test all available chat models 5 times each and generate comprehensive report ⚠️ This test may take up to 2 minutes to complete",
|
|
580
581
|
},
|
|
581
582
|
],
|
|
582
583
|
default: "listModels",
|
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.3",
|
|
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.37.
|
|
3
|
+
"version": "3.37.3",
|
|
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",
|