n8n-nodes-tushare
Version:
n8n custom node for Tushare
53 lines • 1.8 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SelfLlm = void 0;
const ChatDescription_1 = require("./ChatDescription");
const n8n_workflow_1 = require("n8n-workflow");
class SelfLlm {
constructor() {
this.description = {
displayName: 'SelfLLM',
name: 'selfLlm',
icon: { light: 'file:llm.svg', dark: 'file:llm.svg' },
documentationUrl: 'https://llm.local.cn/ai',
group: ['transform'],
version: 1,
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
description: 'Consume Self LLM',
defaults: {
name: 'Self LLM',
},
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
credentials: [
{
name: 'selfLLMApi',
required: true,
},
],
requestDefaults: {
ignoreHttpStatusErrors: true,
baseURL: 'http://llm.local.cn/ai',
},
properties: [
{
displayName: 'Resource',
name: 'resource',
type: 'options',
noDataExpression: true,
options: [
{
name: 'Chat',
value: 'chat'
}
],
default: 'chat',
},
...ChatDescription_1.chatOperations,
...ChatDescription_1.chatFields,
],
};
}
}
exports.SelfLlm = SelfLlm;
//# sourceMappingURL=SelfLlm.node.js.map