UNPKG

@n8n/n8n-nodes-langchain

Version:
76 lines 2.84 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AzureOpenAiApi = void 0; class AzureOpenAiApi { constructor() { this.name = 'azureOpenAiApi'; this.displayName = 'Azure Open AI'; this.documentationUrl = 'azureopenai'; this.properties = [ { displayName: 'Endpoint Type', name: 'endpointType', type: 'options', options: [ { name: 'Classic', value: 'classic' }, { name: 'Azure AI Foundry', value: 'foundry' }, ], default: 'classic', description: 'Classic targets *.openai.azure.com (resource name + deployment-based URLs). Azure AI Foundry targets *.services.ai.azure.com/openai/v1 (full endpoint URL).', }, { displayName: 'API Key', name: 'apiKey', type: 'string', typeOptions: { password: true }, required: true, default: '', }, { displayName: 'Resource Name', name: 'resourceName', type: 'string', required: true, default: '', displayOptions: { show: { endpointType: ['classic'] } }, }, { displayName: 'API Version', name: 'apiVersion', type: 'string', required: true, default: '2025-03-01-preview', displayOptions: { show: { endpointType: ['classic'] } }, }, { displayName: 'Endpoint', name: 'foundryEndpoint', type: 'string', required: true, default: '', placeholder: 'https://<resource>.services.ai.azure.com/openai/v1', displayOptions: { show: { endpointType: ['foundry'] } }, hint: 'The full Azure AI Foundry OpenAI-compatible base URL.', }, { displayName: 'Endpoint', name: 'endpoint', type: 'string', default: undefined, placeholder: 'https://<resource>.openai.azure.com', displayOptions: { show: { endpointType: ['classic'] } }, hint: 'Optional. Defaults to https://<resourceName>.openai.azure.com.', }, ]; this.authenticate = { type: 'generic', properties: { headers: { 'api-key': '={{$credentials.apiKey}}', }, }, }; } } exports.AzureOpenAiApi = AzureOpenAiApi; //# sourceMappingURL=AzureOpenAiApi.credentials.js.map