n8n-nodes-github-copilot 3.38.5 → 3.38.7

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.
@@ -303,32 +303,30 @@ class GitHubCopilotOpenAI {
303
303
  console.log(' ℹ️ Keeping content as is');
304
304
  }
305
305
  }
306
- return {
306
+ const choiceObj = {
307
307
  index: choice.index,
308
308
  message: {
309
309
  role: choice.message.role,
310
- ...(choice.message.content !== null && choice.message.content !== undefined && {
311
- content: processedContent
312
- }),
310
+ content: processedContent,
313
311
  refusal: choice.message.refusal || null,
314
- annotations: choice.message.annotations || [],
315
- ...(choice.message.tool_calls && { tool_calls: choice.message.tool_calls }),
316
312
  },
317
313
  logprobs: choice.logprobs || null,
318
314
  finish_reason: choice.finish_reason,
319
315
  };
316
+ if (choice.message.tool_calls && choice.message.tool_calls.length > 0) {
317
+ choiceObj.message.tool_calls = choice.message.tool_calls;
318
+ }
319
+ return choiceObj;
320
320
  }),
321
321
  usage: response.usage || {
322
322
  prompt_tokens: 0,
323
323
  completion_tokens: 0,
324
324
  total_tokens: 0,
325
325
  },
326
- ...(retriesUsed > 0 && {
327
- _retry_info: {
328
- retries: retriesUsed,
329
- }
330
- }),
331
326
  };
327
+ if (response.system_fingerprint) {
328
+ openAIResponse.system_fingerprint = response.system_fingerprint;
329
+ }
332
330
  returnData.push({
333
331
  json: openAIResponse,
334
332
  pairedItem: { item: i },
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-github-copilot",
3
- "version": "3.38.5",
3
+ "version": "3.38.7",
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.38.5",
3
+ "version": "3.38.7",
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",