n8n-nodes-github-copilot 3.38.0 → 3.38.1

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.
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-github-copilot",
3
- "version": "3.38.0",
3
+ "version": "3.38.1",
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",
@@ -77,6 +77,11 @@ class DynamicModelsManager {
77
77
  });
78
78
  }
79
79
  static modelsToN8nOptions(models) {
80
+ const nameCount = new Map();
81
+ models.forEach((model) => {
82
+ const displayName = model.display_name || model.name || model.id;
83
+ nameCount.set(displayName, (nameCount.get(displayName) || 0) + 1);
84
+ });
80
85
  return models.map((model) => {
81
86
  const badges = [];
82
87
  if (model.capabilities) {
@@ -96,10 +101,14 @@ class DynamicModelsManager {
96
101
  }
97
102
  const displayName = model.display_name || model.name || model.id;
98
103
  const badgesText = badges.length > 0 ? ` [${badges.join(" • ")}]` : "";
104
+ const hasDuplicates = (nameCount.get(displayName) || 0) > 1;
99
105
  let description = "";
100
106
  if (model.capabilities) {
101
107
  const limits = model.capabilities.limits || {};
102
108
  const parts = [];
109
+ if (hasDuplicates) {
110
+ parts.push(`ID: ${model.id}`);
111
+ }
103
112
  if (limits.max_context_window_tokens) {
104
113
  parts.push(`Context: ${(limits.max_context_window_tokens / 1000).toFixed(0)}k`);
105
114
  }
@@ -111,6 +120,9 @@ class DynamicModelsManager {
111
120
  }
112
121
  description = parts.join(" • ");
113
122
  }
123
+ else if (hasDuplicates) {
124
+ description = `ID: ${model.id}`;
125
+ }
114
126
  return {
115
127
  name: `${displayName}${badgesText}`,
116
128
  value: model.id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-github-copilot",
3
- "version": "3.38.0",
3
+ "version": "3.38.1",
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",