n8n-nodes-github-copilot 3.6.0 → 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
|
-
baseURL: 'https://
|
|
119
|
+
baseURL: 'https://api.githubcopilot.com',
|
|
120
|
+
apiKey: credentials.accessToken,
|
|
121
121
|
defaultHeaders: {
|
|
122
122
|
'User-Agent': 'n8n-github-copilot-chat-model',
|
|
123
|
-
'
|
|
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'
|
|
@@ -34,7 +34,7 @@ export declare class GitHubCopilotModelsManager {
|
|
|
34
34
|
static getModelsForUseCase(useCase: 'general' | 'coding' | 'vision' | 'reasoning' | 'tools'): GitHubCopilotModel[];
|
|
35
35
|
}
|
|
36
36
|
export declare const DEFAULT_MODELS: {
|
|
37
|
-
readonly GENERAL: "
|
|
37
|
+
readonly GENERAL: "gpt-4o-mini";
|
|
38
38
|
readonly CODING: "o3-mini";
|
|
39
39
|
readonly VISION: "gpt-4o";
|
|
40
40
|
readonly REASONING: "claude-sonnet-4";
|
|
@@ -294,7 +294,7 @@ class GitHubCopilotModelsManager {
|
|
|
294
294
|
}
|
|
295
295
|
exports.GitHubCopilotModelsManager = GitHubCopilotModelsManager;
|
|
296
296
|
exports.DEFAULT_MODELS = {
|
|
297
|
-
GENERAL: '
|
|
297
|
+
GENERAL: 'gpt-4o-mini',
|
|
298
298
|
CODING: 'o3-mini',
|
|
299
299
|
VISION: 'gpt-4o',
|
|
300
300
|
REASONING: 'claude-sonnet-4',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-github-copilot",
|
|
3
|
-
"version": "3.6.
|
|
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",
|