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