n8n-nodes-github-copilot 3.38.8 → 3.38.9

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.
@@ -195,13 +195,6 @@ class GitHubCopilotEmbeddings {
195
195
  default: "float",
196
196
  description: "The format to return the embeddings in",
197
197
  },
198
- {
199
- displayName: "Return Full Response",
200
- name: "returnFullResponse",
201
- type: "boolean",
202
- default: false,
203
- description: "Whether to return the full API response including usage statistics",
204
- },
205
198
  {
206
199
  displayName: "Enable Retry",
207
200
  name: "enableRetry",
@@ -309,42 +302,20 @@ class GitHubCopilotEmbeddings {
309
302
  requestBody.encoding_format = options.encoding_format;
310
303
  }
311
304
  const result = await (0, EmbeddingsApiUtils_1.executeEmbeddingsRequest)(oauthToken, requestBody, enableRetry, maxRetries);
312
- const returnFullResponse = options.returnFullResponse === true;
313
- if (returnFullResponse) {
314
- returnData.push({
315
- json: result,
316
- pairedItem: { item: i },
317
- });
318
- }
319
- else {
320
- if (inputMode === "batch") {
321
- const embeddings = result.data.map((item) => ({
322
- index: item.index,
323
- embedding: item.embedding,
324
- dimensions: item.embedding.length,
325
- }));
326
- returnData.push({
327
- json: {
328
- model: result.model,
329
- embeddings,
330
- usage: result.usage,
331
- },
332
- pairedItem: { item: i },
333
- });
334
- }
335
- else {
336
- const embeddingData = result.data[0];
337
- returnData.push({
338
- json: {
339
- embedding: embeddingData.embedding,
340
- dimensions: embeddingData.embedding.length,
341
- model: result.model,
342
- usage: result.usage,
343
- },
344
- pairedItem: { item: i },
345
- });
346
- }
347
- }
305
+ const openAIResponse = {
306
+ object: "list",
307
+ data: result.data.map((item) => ({
308
+ object: "embedding",
309
+ index: item.index,
310
+ embedding: item.embedding,
311
+ })),
312
+ model: result.model,
313
+ usage: result.usage,
314
+ };
315
+ returnData.push({
316
+ json: openAIResponse,
317
+ pairedItem: { item: i },
318
+ });
348
319
  }
349
320
  catch (error) {
350
321
  if (this.continueOnFail()) {
@@ -226,23 +226,6 @@ class GitHubCopilotOpenAI {
226
226
  }
227
227
  if (response_format) {
228
228
  requestBody.response_format = response_format;
229
- if (response_format.type === 'json_object') {
230
- const allMessagesText = messages.map(m => m.content).join(' ').toLowerCase();
231
- if (!allMessagesText.includes('json')) {
232
- const systemMessageIndex = messages.findIndex(m => m.role === 'system');
233
- if (systemMessageIndex !== -1) {
234
- messages[systemMessageIndex].content += '\n\nResponse format: json';
235
- console.log('ℹ️ Auto-injected "json" keyword into existing system message for json_object format');
236
- }
237
- else {
238
- messages.unshift({
239
- role: 'system',
240
- content: 'Response format: json'
241
- });
242
- console.log('ℹ️ Auto-injected system message with "json" keyword for json_object format');
243
- }
244
- }
245
- }
246
229
  }
247
230
  if (seed > 0) {
248
231
  requestBody.seed = seed;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-github-copilot",
3
- "version": "3.38.8",
3
+ "version": "3.38.9",
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.8",
3
+ "version": "3.38.9",
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",