mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
fix(Cohere Model Node): Fix issue with credential test (#8916)
This commit is contained in:
@@ -35,11 +35,7 @@ export class CohereApi implements ICredentialType {
|
|||||||
test: ICredentialTestRequest = {
|
test: ICredentialTestRequest = {
|
||||||
request: {
|
request: {
|
||||||
baseURL: 'https://api.cohere.ai',
|
baseURL: 'https://api.cohere.ai',
|
||||||
url: '/v1/detect-language',
|
url: '/v1/models?page_size=1',
|
||||||
method: 'POST',
|
|
||||||
body: {
|
|
||||||
texts: ['hello'],
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user