UNPKG

@n8n/n8n-nodes-langchain

Version:
31 lines 1.18 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.vertexLocationField = void 0; exports.getVertexEndpoint = getVertexEndpoint; exports.resolveVertexLocation = resolveVertexLocation; const MULTI_REGION_LOCATIONS = ['eu', 'us']; function getVertexEndpoint(location) { if (MULTI_REGION_LOCATIONS.includes(location)) { return `aiplatform.${location}.rep.googleapis.com`; } return undefined; } function resolveVertexLocation(override, credentialRegion) { if (override) return override; return credentialRegion; } exports.vertexLocationField = { displayName: 'Region', name: 'location', type: 'options', default: '', description: 'Where the model runs. Newer Gemini models (3.x) are only available on the Global or the EU/US multi-region locations. Leave as Default to use the region set in the credential.', options: [ { name: 'Default (Use Credential Region)', value: '' }, { name: 'Global', value: 'global' }, { name: 'EU (Multi-Region)', value: 'eu' }, { name: 'US (Multi-Region)', value: 'us' }, ], }; //# sourceMappingURL=vertex-location.js.map