n8n-nodes-github-copilot 3.38.3 → 3.38.4
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.
|
@@ -196,6 +196,13 @@ class GitHubCopilotOpenAI {
|
|
|
196
196
|
}
|
|
197
197
|
if (response_format) {
|
|
198
198
|
requestBody.response_format = response_format;
|
|
199
|
+
if (response_format.type === 'json_object') {
|
|
200
|
+
const allMessagesText = messages.map(m => m.content).join(' ').toLowerCase();
|
|
201
|
+
if (!allMessagesText.includes('json')) {
|
|
202
|
+
throw new Error('When using response_format "json_object", you must include the word "json" in your messages. ' +
|
|
203
|
+
'Add instructions like "Respond in JSON format" to your system message or user prompt.');
|
|
204
|
+
}
|
|
205
|
+
}
|
|
199
206
|
}
|
|
200
207
|
if (seed > 0) {
|
|
201
208
|
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.
|
|
3
|
+
"version": "3.38.4",
|
|
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.4",
|
|
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",
|