fix(Cohere Model Node): Fix issue with credential test (#8916)

This commit is contained in:
Jon 2024-03-19 13:49:39 +00:00 committed by GitHub
parent e0c303c6c1
commit 4f0b52c45d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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',
},
};
}