@n8n/n8n-nodes-langchain
Version:
13 lines • 633 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.requireFoundryEndpoint = requireFoundryEndpoint;
const n8n_workflow_1 = require("n8n-workflow");
const normalizeEndpoint_1 = require("../../../../utils/normalizeEndpoint");
function requireFoundryEndpoint(node, foundryEndpoint) {
const endpoint = (0, normalizeEndpoint_1.normalizeEndpoint)(foundryEndpoint);
if (!endpoint) {
throw new n8n_workflow_1.NodeOperationError(node, 'Foundry endpoint is missing in the selected Microsoft Foundry credential.');
}
return endpoint;
}
//# sourceMappingURL=requireFoundryEndpoint.js.map