feat(Anthropic Chat Model Node): Add configurable base URL for Anthropic API (#15063)

This commit is contained in:
oleg
2025-05-05 09:57:10 +02:00
committed by GitHub
parent 54499fc6d1
commit 4b5f045281
4 changed files with 56 additions and 6 deletions

View File

@@ -21,6 +21,13 @@ export class AnthropicApi implements ICredentialType {
required: true,
default: '',
},
{
displayName: 'Base URL',
name: 'url',
type: 'string',
default: 'https://api.anthropic.com',
description: 'Override the default base URL for the API',
},
];
authenticate: IAuthenticateGeneric = {
@@ -34,7 +41,7 @@ export class AnthropicApi implements ICredentialType {
test: ICredentialTestRequest = {
request: {
baseURL: 'https://api.anthropic.com',
baseURL: '={{$credentials?.url}}',
url: '/v1/messages',
method: 'POST',
headers: {