From f82e82d32ed06ab0a9f7a635748625dec3f4fffe Mon Sep 17 00:00:00 2001 From: Jonathan Bennetts Date: Mon, 18 Mar 2024 16:16:28 +0000 Subject: [PATCH] fix(Cohere Model Node): Fix issue with credential test --- .../nodes-langchain/credentials/CohereApi.credentials.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/@n8n/nodes-langchain/credentials/CohereApi.credentials.ts b/packages/@n8n/nodes-langchain/credentials/CohereApi.credentials.ts index 7ad875162afd1..f243593e7b63e 100644 --- a/packages/@n8n/nodes-langchain/credentials/CohereApi.credentials.ts +++ b/packages/@n8n/nodes-langchain/credentials/CohereApi.credentials.ts @@ -35,11 +35,7 @@ export class CohereApi implements ICredentialType { test: ICredentialTestRequest = { request: { baseURL: 'https://api.cohere.ai', - url: '/v1/detect-language', - method: 'POST', - body: { - texts: ['hello'], - }, + url: '/v1/models?page_size=1', }, }; }