mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
feat(Cohere Chat Model Node): Add Cohere Chat Model node (#16888)
This commit is contained in:
@@ -21,6 +21,12 @@ export class CohereApi implements ICredentialType {
|
||||
required: true,
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Base URL',
|
||||
name: 'url',
|
||||
type: 'hidden',
|
||||
default: 'https://api.cohere.ai',
|
||||
},
|
||||
];
|
||||
|
||||
authenticate: IAuthenticateGeneric = {
|
||||
@@ -34,7 +40,7 @@ export class CohereApi implements ICredentialType {
|
||||
|
||||
test: ICredentialTestRequest = {
|
||||
request: {
|
||||
baseURL: 'https://api.cohere.ai',
|
||||
baseURL: '={{ $credentials.url }}',
|
||||
url: '/v1/models?page_size=1',
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user