n8n-nodes-github-copilot 3.5.3 → 3.6.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.
@@ -111,17 +111,16 @@ class GitHubCopilotChatModel {
111
111
  const safeModel = modelInfo ? model : GitHubCopilotModels_1.DEFAULT_MODELS.GENERAL;
112
112
  const safeModelInfo = modelInfo || GitHubCopilotModels_1.GitHubCopilotModelsManager.getModelByValue(GitHubCopilotModels_1.DEFAULT_MODELS.GENERAL);
113
113
  const modelConfig = {
114
- apiKey: credentials.accessToken,
115
114
  model: safeModel,
116
115
  temperature: options.temperature || 0.7,
117
116
  maxTokens: Math.min(options.maxTokens || 1000, (safeModelInfo === null || safeModelInfo === void 0 ? void 0 : safeModelInfo.capabilities.maxOutputTokens) || 4096),
118
117
  topP: options.topP || 1,
119
118
  configuration: {
120
119
  baseURL: 'https://api.githubcopilot.com',
120
+ apiKey: credentials.accessToken,
121
121
  defaultHeaders: {
122
122
  'User-Agent': 'n8n-github-copilot-chat-model',
123
- 'Content-Type': 'application/json',
124
- 'Authorization': `Bearer ${credentials.accessToken}`,
123
+ 'Accept': 'application/json',
125
124
  ...(options.enableVision && (safeModelInfo === null || safeModelInfo === void 0 ? void 0 : safeModelInfo.capabilities.vision) && {
126
125
  'Copilot-Vision-Request': 'true',
127
126
  'Copilot-Media-Request': 'true'
@@ -35,9 +35,9 @@ export declare class GitHubCopilotModelsManager {
35
35
  }
36
36
  export declare const DEFAULT_MODELS: {
37
37
  readonly GENERAL: "gpt-4o-mini";
38
- readonly CODING: "o1-mini";
38
+ readonly CODING: "o3-mini";
39
39
  readonly VISION: "gpt-4o";
40
- readonly REASONING: "o1-preview";
41
- readonly TOOLS: "gpt-4o-mini";
42
- readonly MULTIMODAL: "gemini-1.5-pro-002";
40
+ readonly REASONING: "claude-sonnet-4";
41
+ readonly TOOLS: "gpt-5";
42
+ readonly MULTIMODAL: "gemini-2.5-pro";
43
43
  };
@@ -3,26 +3,60 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DEFAULT_MODELS = exports.GitHubCopilotModelsManager = exports.GITHUB_COPILOT_MODELS = void 0;
4
4
  exports.GITHUB_COPILOT_MODELS = [
5
5
  {
6
- value: 'gpt-4o',
7
- name: 'GPT-4o',
8
- description: 'Most capable GPT-4 model with vision, optimized for chat and complex reasoning',
6
+ value: 'auto',
7
+ name: 'Auto (Recommended)',
8
+ description: 'Automatically selects the best model for your task',
9
9
  capabilities: {
10
10
  toolsCalling: true,
11
11
  vision: true,
12
12
  multimodal: true,
13
13
  maxContextTokens: 128000,
14
- maxOutputTokens: 4096,
14
+ maxOutputTokens: 16384,
15
15
  streaming: true,
16
16
  provider: 'OpenAI',
17
- category: 'multimodal'
17
+ category: 'chat'
18
18
  },
19
19
  recommended: true,
20
20
  status: 'stable'
21
21
  },
22
22
  {
23
- value: 'gpt-4o-mini',
24
- name: 'GPT-4o Mini',
25
- description: 'Faster and more cost-effective GPT-4o with excellent performance',
23
+ value: 'gpt-5',
24
+ name: 'GPT-5',
25
+ description: 'Latest generation GPT model with enhanced capabilities',
26
+ capabilities: {
27
+ toolsCalling: true,
28
+ vision: true,
29
+ multimodal: true,
30
+ maxContextTokens: 128000,
31
+ maxOutputTokens: 64000,
32
+ streaming: true,
33
+ provider: 'OpenAI',
34
+ category: 'chat'
35
+ },
36
+ recommended: true,
37
+ status: 'stable'
38
+ },
39
+ {
40
+ value: 'gpt-5-mini',
41
+ name: 'GPT-5 Mini',
42
+ description: 'Faster and more efficient GPT-5 model',
43
+ capabilities: {
44
+ toolsCalling: true,
45
+ vision: true,
46
+ multimodal: true,
47
+ maxContextTokens: 128000,
48
+ maxOutputTokens: 64000,
49
+ streaming: true,
50
+ provider: 'OpenAI',
51
+ category: 'chat'
52
+ },
53
+ recommended: true,
54
+ status: 'stable'
55
+ },
56
+ {
57
+ value: 'gpt-4.1',
58
+ name: 'GPT-4.1',
59
+ description: 'Enhanced GPT-4 model with improved capabilities',
26
60
  capabilities: {
27
61
  toolsCalling: true,
28
62
  vision: true,
@@ -37,9 +71,26 @@ exports.GITHUB_COPILOT_MODELS = [
37
71
  status: 'stable'
38
72
  },
39
73
  {
40
- value: 'gpt-4',
41
- name: 'GPT-4',
42
- description: 'Powerful GPT-4 model for complex tasks',
74
+ value: 'gpt-4o',
75
+ name: 'GPT-4o',
76
+ description: 'Most capable GPT-4 model with vision, optimized for chat and complex reasoning',
77
+ capabilities: {
78
+ toolsCalling: true,
79
+ vision: true,
80
+ multimodal: true,
81
+ maxContextTokens: 128000,
82
+ maxOutputTokens: 4096,
83
+ streaming: true,
84
+ provider: 'OpenAI',
85
+ category: 'multimodal'
86
+ },
87
+ recommended: true,
88
+ status: 'stable'
89
+ },
90
+ {
91
+ value: 'gpt-4o-mini',
92
+ name: 'GPT-4o Mini',
93
+ description: 'Faster and more cost-effective GPT-4o - VERIFIED WORKING',
43
94
  capabilities: {
44
95
  toolsCalling: true,
45
96
  vision: false,
@@ -50,53 +101,70 @@ exports.GITHUB_COPILOT_MODELS = [
50
101
  provider: 'OpenAI',
51
102
  category: 'chat'
52
103
  },
53
- recommended: false,
104
+ recommended: true,
54
105
  status: 'stable'
55
106
  },
56
107
  {
57
- value: 'o1-preview',
58
- name: 'o1 Preview',
59
- description: 'Advanced reasoning model optimized for complex problem-solving',
108
+ value: 'o3-mini',
109
+ name: 'o3 Mini',
110
+ description: 'New reasoning model optimized for coding and complex tasks',
60
111
  capabilities: {
61
- toolsCalling: false,
112
+ toolsCalling: true,
62
113
  vision: false,
63
114
  multimodal: false,
64
- maxContextTokens: 128000,
65
- maxOutputTokens: 32768,
66
- streaming: false,
115
+ maxContextTokens: 200000,
116
+ maxOutputTokens: 100000,
117
+ streaming: true,
67
118
  provider: 'OpenAI',
68
119
  category: 'reasoning'
69
120
  },
70
- recommended: false,
71
- status: 'preview'
121
+ recommended: true,
122
+ status: 'stable'
72
123
  },
73
124
  {
74
- value: 'o1-mini',
75
- name: 'o1 Mini',
76
- description: 'Faster reasoning model optimized for coding and STEM tasks',
125
+ value: 'claude-sonnet-4',
126
+ name: 'Claude Sonnet 4',
127
+ description: 'Latest Claude model with advanced reasoning capabilities',
77
128
  capabilities: {
78
- toolsCalling: false,
79
- vision: false,
80
- multimodal: false,
129
+ toolsCalling: true,
130
+ vision: true,
131
+ multimodal: true,
81
132
  maxContextTokens: 128000,
82
- maxOutputTokens: 65536,
83
- streaming: false,
84
- provider: 'OpenAI',
85
- category: 'coding'
133
+ maxOutputTokens: 16000,
134
+ streaming: true,
135
+ provider: 'Anthropic',
136
+ category: 'chat'
86
137
  },
87
138
  recommended: true,
88
- status: 'preview'
139
+ status: 'stable'
89
140
  },
90
141
  {
91
- value: 'claude-3-5-sonnet-20241022',
92
- name: 'Claude 3.5 Sonnet',
93
- description: 'Anthropic\'s most capable model with excellent reasoning and creativity',
142
+ value: 'claude-opus-4',
143
+ name: 'Claude Opus 4',
144
+ description: 'Most powerful Claude model for complex reasoning (may have performance issues)',
145
+ capabilities: {
146
+ toolsCalling: false,
147
+ vision: true,
148
+ multimodal: true,
149
+ maxContextTokens: 80000,
150
+ maxOutputTokens: 16000,
151
+ streaming: true,
152
+ provider: 'Anthropic',
153
+ category: 'reasoning'
154
+ },
155
+ recommended: false,
156
+ status: 'stable'
157
+ },
158
+ {
159
+ value: 'claude-3.7-sonnet',
160
+ name: 'Claude 3.7 Sonnet',
161
+ description: 'Enhanced Claude 3.5 with improved capabilities',
94
162
  capabilities: {
95
163
  toolsCalling: true,
96
164
  vision: true,
97
165
  multimodal: true,
98
166
  maxContextTokens: 200000,
99
- maxOutputTokens: 8192,
167
+ maxOutputTokens: 16384,
100
168
  streaming: true,
101
169
  provider: 'Anthropic',
102
170
  category: 'chat'
@@ -105,14 +173,31 @@ exports.GITHUB_COPILOT_MODELS = [
105
173
  status: 'stable'
106
174
  },
107
175
  {
108
- value: 'claude-3-5-haiku-20241022',
109
- name: 'Claude 3.5 Haiku',
110
- description: 'Fast and efficient Claude model for quick tasks',
176
+ value: 'claude-3.7-sonnet-thought',
177
+ name: 'Claude 3.7 Sonnet Thinking',
178
+ description: 'Claude with visible reasoning process',
111
179
  capabilities: {
112
- toolsCalling: true,
180
+ toolsCalling: false,
113
181
  vision: true,
114
182
  multimodal: true,
115
183
  maxContextTokens: 200000,
184
+ maxOutputTokens: 16384,
185
+ streaming: true,
186
+ provider: 'Anthropic',
187
+ category: 'reasoning'
188
+ },
189
+ recommended: false,
190
+ status: 'stable'
191
+ },
192
+ {
193
+ value: 'claude-3.5-sonnet',
194
+ name: 'Claude 3.5 Sonnet',
195
+ description: 'Anthropic\'s balanced model with excellent reasoning and creativity',
196
+ capabilities: {
197
+ toolsCalling: true,
198
+ vision: true,
199
+ multimodal: true,
200
+ maxContextTokens: 90000,
116
201
  maxOutputTokens: 8192,
117
202
  streaming: true,
118
203
  provider: 'Anthropic',
@@ -120,6 +205,40 @@ exports.GITHUB_COPILOT_MODELS = [
120
205
  },
121
206
  recommended: true,
122
207
  status: 'stable'
208
+ },
209
+ {
210
+ value: 'gemini-2.5-pro',
211
+ name: 'Gemini 2.5 Pro',
212
+ description: 'Most advanced Gemini model with reasoning capabilities',
213
+ capabilities: {
214
+ toolsCalling: true,
215
+ vision: true,
216
+ multimodal: true,
217
+ maxContextTokens: 128000,
218
+ maxOutputTokens: 64000,
219
+ streaming: true,
220
+ provider: 'Google',
221
+ category: 'reasoning'
222
+ },
223
+ recommended: true,
224
+ status: 'stable'
225
+ },
226
+ {
227
+ value: 'gemini-2.0-flash-001',
228
+ name: 'Gemini 2.0 Flash',
229
+ description: 'Fast and efficient Gemini model with large context window',
230
+ capabilities: {
231
+ toolsCalling: true,
232
+ vision: true,
233
+ multimodal: true,
234
+ maxContextTokens: 1000000,
235
+ maxOutputTokens: 8192,
236
+ streaming: true,
237
+ provider: 'Google',
238
+ category: 'chat'
239
+ },
240
+ recommended: true,
241
+ status: 'stable'
123
242
  }
124
243
  ];
125
244
  class GitHubCopilotModelsManager {
@@ -176,9 +295,9 @@ class GitHubCopilotModelsManager {
176
295
  exports.GitHubCopilotModelsManager = GitHubCopilotModelsManager;
177
296
  exports.DEFAULT_MODELS = {
178
297
  GENERAL: 'gpt-4o-mini',
179
- CODING: 'o1-mini',
298
+ CODING: 'o3-mini',
180
299
  VISION: 'gpt-4o',
181
- REASONING: 'o1-preview',
182
- TOOLS: 'gpt-4o-mini',
183
- MULTIMODAL: 'gemini-1.5-pro-002'
300
+ REASONING: 'claude-sonnet-4',
301
+ TOOLS: 'gpt-5',
302
+ MULTIMODAL: 'gemini-2.5-pro'
184
303
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-github-copilot",
3
- "version": "3.5.3",
3
+ "version": "3.6.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",