n8n-nodes-github-copilot 3.37.4 โ 3.37.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.
|
@@ -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;
|
|
@@ -414,11 +420,10 @@ async function testEmbeddingModels(githubToken, enableRetry = true, maxRetries =
|
|
|
414
420
|
const testStartTime = Date.now();
|
|
415
421
|
try {
|
|
416
422
|
console.log("๐งช Testing embedding models...");
|
|
417
|
-
const oauthToken = await OAuthTokenManager_1.OAuthTokenManager.getValidOAuthToken(githubToken);
|
|
418
423
|
const modelsUrl = `${GitHubCopilotEndpoints_1.GITHUB_COPILOT_API.URLS.MODELS}`;
|
|
419
424
|
const modelsResponse = await fetch(modelsUrl, {
|
|
420
425
|
method: "GET",
|
|
421
|
-
headers: GitHubCopilotEndpoints_1.GitHubCopilotEndpoints.getAuthHeaders(
|
|
426
|
+
headers: GitHubCopilotEndpoints_1.GitHubCopilotEndpoints.getAuthHeaders(githubToken),
|
|
422
427
|
});
|
|
423
428
|
if (!modelsResponse.ok) {
|
|
424
429
|
throw new Error(`Failed to fetch models: ${modelsResponse.status}`);
|
|
@@ -430,6 +435,7 @@ async function testEmbeddingModels(githubToken, enableRetry = true, maxRetries =
|
|
|
430
435
|
return modelType === "embeddings";
|
|
431
436
|
});
|
|
432
437
|
console.log(`๐ Found ${embeddingModels.length} embedding models to test`);
|
|
438
|
+
const oauthToken = await OAuthTokenManager_1.OAuthTokenManager.getValidOAuthToken(githubToken);
|
|
433
439
|
const testResults = {};
|
|
434
440
|
const testText = "This is a test sentence for embeddings generation.";
|
|
435
441
|
for (const model of embeddingModels) {
|
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.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",
|
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.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",
|