mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(Anthropic Chat Model Node): Update credentials test endpoint (#11756)
This commit is contained in:
@@ -35,15 +35,15 @@ export class AnthropicApi implements ICredentialType {
|
|||||||
test: ICredentialTestRequest = {
|
test: ICredentialTestRequest = {
|
||||||
request: {
|
request: {
|
||||||
baseURL: 'https://api.anthropic.com',
|
baseURL: 'https://api.anthropic.com',
|
||||||
url: '/v1/complete',
|
url: '/v1/messages',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'anthropic-version': '2023-06-01',
|
'anthropic-version': '2023-06-01',
|
||||||
},
|
},
|
||||||
body: {
|
body: {
|
||||||
model: 'claude-2',
|
model: 'claude-3-haiku-20240307',
|
||||||
prompt: '\n\nHuman: Hello, world!\n\nAssistant:',
|
messages: [{ role: 'user', content: 'Hey' }],
|
||||||
max_tokens_to_sample: 256,
|
max_tokens: 1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user