n8n-nodes-github-copilot 3.31.25 → 3.31.26

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.
@@ -91,12 +91,17 @@ class GitHubCopilotOpenAI {
91
91
  }
92
92
  const max_tokens = this.getNodeParameter("max_tokens", i, 4096);
93
93
  const seed = this.getNodeParameter("seed", i, 0);
94
+ const response_format_ui = this.getNodeParameter("response_format", i, "text");
94
95
  const advancedOptions = this.getNodeParameter("advancedOptions", i, {});
95
96
  let response_format = undefined;
96
97
  if (requestBodyFromJson === null || requestBodyFromJson === void 0 ? void 0 : requestBodyFromJson.response_format) {
97
98
  response_format = requestBodyFromJson.response_format;
98
99
  console.log('📋 response_format from JSON request body:', JSON.stringify(response_format));
99
100
  }
101
+ else if (response_format_ui && response_format_ui !== 'text') {
102
+ response_format = { type: response_format_ui };
103
+ console.log('📋 response_format from UI field:', JSON.stringify(response_format));
104
+ }
100
105
  else if (advancedOptions.response_format && typeof advancedOptions.response_format === 'string') {
101
106
  try {
102
107
  response_format = JSON.parse(advancedOptions.response_format);
@@ -111,7 +116,7 @@ class GitHubCopilotOpenAI {
111
116
  console.log('🔍 response_format.type:', response_format.type);
112
117
  }
113
118
  else {
114
- console.log('â„šī¸ No response_format specified');
119
+ console.log('â„šī¸ No response_format specified - using default text format');
115
120
  }
116
121
  const modelMapping = {
117
122
  "gpt-4": "gpt-4o",
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-github-copilot",
3
- "version": "3.31.25",
3
+ "version": "3.31.26",
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.31.25",
3
+ "version": "3.31.26",
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",