n8n-nodes-github-copilot 3.5.0 → 3.5.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.
|
@@ -109,7 +109,7 @@ class GitHubCopilotChatModel {
|
|
|
109
109
|
const modelInfo = GitHubCopilotModels_1.GitHubCopilotModelsManager.getModelByValue(model);
|
|
110
110
|
const credentials = await this.getCredentials('gitHubApiManual');
|
|
111
111
|
const modelConfig = {
|
|
112
|
-
|
|
112
|
+
apiKey: credentials.accessToken,
|
|
113
113
|
model: model,
|
|
114
114
|
temperature: options.temperature || 0.7,
|
|
115
115
|
maxTokens: Math.min(options.maxTokens || 1000, (modelInfo === null || modelInfo === void 0 ? void 0 : modelInfo.capabilities.maxOutputTokens) || 4096),
|
|
@@ -119,6 +119,7 @@ class GitHubCopilotChatModel {
|
|
|
119
119
|
defaultHeaders: {
|
|
120
120
|
'User-Agent': 'n8n-github-copilot-chat-model',
|
|
121
121
|
'Content-Type': 'application/json',
|
|
122
|
+
'Authorization': `Bearer ${credentials.accessToken}`,
|
|
122
123
|
...(options.enableVision && (modelInfo === null || modelInfo === void 0 ? void 0 : modelInfo.capabilities.vision) && {
|
|
123
124
|
'Copilot-Vision-Request': 'true',
|
|
124
125
|
'Copilot-Media-Request': 'true'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-github-copilot",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.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",
|