UNPKG

@n8n/n8n-nodes-langchain

Version:

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

59 lines 1.9 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ChromaCloudApi = void 0; class ChromaCloudApi { constructor() { this.name = 'chromaCloudApi'; this.displayName = 'ChromaDB Cloud'; this.documentationUrl = 'chroma'; this.properties = [ { displayName: 'API Key', name: 'apiKey', type: 'string', typeOptions: { password: true }, default: '', required: true, description: 'Your Chroma Cloud API key', }, { displayName: 'Tenant ID', name: 'tenant', type: 'string', default: '', description: 'Optional: Tenant ID (auto-resolved if API key is scoped to single DB)', }, { displayName: 'Database Name', name: 'database', type: 'string', default: '', description: 'Optional: Database name (auto-resolved if API key is scoped to single DB)', }, { displayName: 'Base URL', name: 'baseUrl', type: 'string', default: 'https://api.trychroma.com', required: true, }, ]; this.authenticate = { type: 'generic', properties: { headers: { 'x-chroma-token': '={{$credentials.apiKey}}', }, }, }; this.test = { request: { baseURL: '={{$credentials.baseUrl}}', url: '/api/v2', method: 'GET', }, }; } } exports.ChromaCloudApi = ChromaCloudApi; //# sourceMappingURL=ChromaCloudApi.credentials.js.map