n8n-nodes-github-copilot 4.4.7 → 4.4.8

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.
@@ -125,7 +125,14 @@ class GitHubCopilotOpenAI {
125
125
  const base64 = buffer.toString('base64');
126
126
  const dataUrl = `data:${mimeType};base64,${base64}`;
127
127
  const contentArray = [];
128
- if (message.content && message.content.trim() !== '') {
128
+ const caption = msg.caption;
129
+ if (caption && caption.trim() !== '') {
130
+ contentArray.push({
131
+ type: 'text',
132
+ text: caption,
133
+ });
134
+ }
135
+ else if (message.content && message.content.trim() !== '' && message.content !== '[object Object]') {
129
136
  contentArray.push({
130
137
  type: 'text',
131
138
  text: message.content,
@@ -104,6 +104,27 @@ exports.nodeProperties = [
104
104
  default: '',
105
105
  placeholder: 'Enter message content...',
106
106
  description: 'The content of the message',
107
+ displayOptions: {
108
+ show: {
109
+ type: ['text', 'file'],
110
+ },
111
+ },
112
+ },
113
+ {
114
+ displayName: 'Caption',
115
+ name: 'caption',
116
+ type: 'string',
117
+ typeOptions: {
118
+ rows: 2,
119
+ },
120
+ default: '',
121
+ placeholder: 'Optional prompt for the image...',
122
+ description: 'Text to accompany the image (optional)',
123
+ displayOptions: {
124
+ show: {
125
+ type: ['file_binary'],
126
+ },
127
+ },
107
128
  },
108
129
  {
109
130
  displayName: 'Type',
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-github-copilot",
3
- "version": "4.4.7",
3
+ "version": "4.4.8",
4
4
  "description": "n8n community node for GitHub Copilot with CLI integration, Chat API access, and AI Chat Model for workflows with full tools and function calling support - 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": "4.4.7",
3
+ "version": "4.4.8",
4
4
  "description": "n8n community node for GitHub Copilot with CLI integration, Chat API access, and AI Chat Model for workflows with full tools and function calling support - 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",