UNPKG

@n8n/n8n-nodes-langchain

Version:

![Banner image](https://user-images.githubusercontent.com/10284570/173569848-c624317f-42b1-45a6-ab09-f0ea3c247648.png)

18 lines 684 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.makeErrorFromStatus = makeErrorFromStatus; function makeErrorFromStatus(statusCode, context) { const errorMessages = { 403: { message: 'Unauthorized for this project', description: 'Check your Google Cloud project ID, that your credential has access to that project and that billing is enabled', }, 404: { message: context?.modelName ? `No model found called '${context.modelName}'` : 'No model found', }, }; return errorMessages[statusCode]; } //# sourceMappingURL=error-handling.js.map