-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into ADO-2190-ai-assistant-ui
* master: feat(Telegram Node): Disable page preview by default (#9267) fix(Jira Trigger Node): Update credentials UI (#9198) fix(LangChain Code Node): Fix execution of custom n8n tools called via LC code node (#9265) fix(editor): Prevent excess runs in manual execution with run data (#9259) fix(Baserow Node): Update logo (no-changelog) (#9261) fix(Customer.io Node): Update logo (no-changelog) (#9262) fix(LangChain Code Node): Fix resolution of scoped langchain modules (#9258) fix(core): Prevent node param resolution from failing telemetry graph generation (#9257) feat(Groq Chat Model Node): Add support for Groq chat models (#9250) ci: Update release-push-to-channel.yml (no-changelog) (#9254) refactor: Update Langchain dependencies (no-changelog) (#9252) refactor(editor): Rewrite TabBar to composition API (no-changelog) (#9231) refactor(core)!: Switch default Postgres user from `root` to `postgres` (#9248) fix(OpenAI Node): Allow to pass files ids as comma separated string in expressions (no-changelog) (#9240) refactor(Structured Output Parser Node): Sandbox JSON schema parsing (no-changelog) (#9239) feat(Ollama Chat Model Node): Add aditional Ollama config parameters & fix vision (#9215)
- Loading branch information
Showing
42 changed files
with
1,147 additions
and
449 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { NDV, WorkflowPage } from '../pages'; | ||
|
||
const canvas = new WorkflowPage(); | ||
const ndv = new NDV(); | ||
|
||
describe('Manual partial execution', () => { | ||
it('should execute parent nodes with no run data only once', () => { | ||
canvas.actions.visit(); | ||
|
||
cy.fixture('manual-partial-execution.json').then((data) => { | ||
cy.get('body').paste(JSON.stringify(data)); | ||
}); | ||
|
||
canvas.actions.zoomToFit(); | ||
|
||
canvas.actions.openNode('Edit Fields'); | ||
|
||
cy.get('button').contains('Test step').click(); // create run data | ||
cy.get('button').contains('Test step').click(); // use run data | ||
|
||
ndv.actions.close(); | ||
|
||
canvas.actions.openNode('Webhook1'); | ||
|
||
ndv.getters.nodeRunSuccessIndicator().should('exist'); | ||
ndv.getters.outputRunSelector().should('not.exist'); // single run | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
{ | ||
"meta": { | ||
"templateCredsSetupCompleted": true | ||
}, | ||
"nodes": [ | ||
{ | ||
"parameters": { | ||
"options": {} | ||
}, | ||
"id": "f4467143-fdb9-46fa-8020-6417cc5eea7d", | ||
"name": "Edit Fields", | ||
"type": "n8n-nodes-base.set", | ||
"typeVersion": 3.3, | ||
"position": [ | ||
1140, | ||
260 | ||
] | ||
}, | ||
{ | ||
"parameters": { | ||
"path": "30ff316d-405f-4288-a0ac-e713546c9d4e", | ||
"options": {} | ||
}, | ||
"id": "4760aafb-5d56-4633-99d3-7a97c576a216", | ||
"name": "Webhook1", | ||
"type": "n8n-nodes-base.webhook", | ||
"typeVersion": 2, | ||
"position": [ | ||
680, | ||
340 | ||
], | ||
"webhookId": "30ff316d-405f-4288-a0ac-e713546c9d4e" | ||
}, | ||
{ | ||
"parameters": { | ||
"articleId": "123", | ||
"additionalFields": {} | ||
}, | ||
"id": "8c811eca-8978-44d9-b8f7-ef2c7725784c", | ||
"name": "Hacker News", | ||
"type": "n8n-nodes-base.hackerNews", | ||
"typeVersion": 1, | ||
"position": [ | ||
920, | ||
260 | ||
] | ||
}, | ||
{ | ||
"parameters": { | ||
"path": "4a3398e4-1388-4e10-9d21-add90b804955", | ||
"options": {} | ||
}, | ||
"id": "1c2c2d06-45c9-4712-9fa0-c655bef8d0e5", | ||
"name": "Webhook", | ||
"type": "n8n-nodes-base.webhook", | ||
"typeVersion": 2, | ||
"position": [ | ||
680, | ||
180 | ||
], | ||
"webhookId": "4a3398e4-1388-4e10-9d21-add90b804955" | ||
} | ||
], | ||
"connections": { | ||
"Webhook1": { | ||
"main": [ | ||
[ | ||
{ | ||
"node": "Hacker News", | ||
"type": "main", | ||
"index": 0 | ||
} | ||
] | ||
] | ||
}, | ||
"Hacker News": { | ||
"main": [ | ||
[ | ||
{ | ||
"node": "Edit Fields", | ||
"type": "main", | ||
"index": 0 | ||
} | ||
] | ||
] | ||
}, | ||
"Webhook": { | ||
"main": [ | ||
[ | ||
{ | ||
"node": "Hacker News", | ||
"type": "main", | ||
"index": 0 | ||
} | ||
] | ||
] | ||
} | ||
}, | ||
"pinData": { | ||
"Webhook": [ | ||
{ | ||
"name": "First item", | ||
"code": 1 | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
packages/@n8n/nodes-langchain/credentials/GroqApi.credentials.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import type { | ||
IAuthenticateGeneric, | ||
ICredentialTestRequest, | ||
ICredentialType, | ||
INodeProperties, | ||
} from 'n8n-workflow'; | ||
|
||
export class GroqApi implements ICredentialType { | ||
name = 'groqApi'; | ||
|
||
displayName = 'Groq'; | ||
|
||
documentationUrl = 'groq'; | ||
|
||
properties: INodeProperties[] = [ | ||
{ | ||
displayName: 'API Key', | ||
name: 'apiKey', | ||
type: 'string', | ||
typeOptions: { password: true }, | ||
required: true, | ||
default: '', | ||
}, | ||
]; | ||
|
||
authenticate: IAuthenticateGeneric = { | ||
type: 'generic', | ||
properties: { | ||
headers: { | ||
Authorization: '=Bearer {{$credentials.apiKey}}', | ||
}, | ||
}, | ||
}; | ||
|
||
test: ICredentialTestRequest = { | ||
request: { | ||
baseURL: 'https://api.groq.com/openai/v1', | ||
url: '/models', | ||
}, | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.