UNPKG

@n8n/n8n-nodes-langchain

Version:

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

36 lines 1.06 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HuggingFaceApi = void 0; class HuggingFaceApi { constructor() { this.name = 'huggingFaceApi'; this.displayName = 'Hugging Face API'; this.documentationUrl = 'huggingface'; this.properties = [ { displayName: 'API Key', name: 'apiKey', type: 'string', typeOptions: { password: true }, required: true, default: '', }, ]; this.authenticate = { type: 'generic', properties: { headers: { Authorization: '=Bearer {{$credentials.apiKey}}', }, }, }; this.test = { request: { baseURL: 'https://huggingface.co', url: '/api/whoami-v2', }, }; } } exports.HuggingFaceApi = HuggingFaceApi; //# sourceMappingURL=HuggingFaceApi.credentials.js.map