n8n-nodes-tushare
Version:
n8n custom node for Tushare
47 lines • 1.56 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SelfLLMApi = void 0;
class SelfLLMApi {
constructor() {
this.name = 'selfLLMApi';
this.displayName = 'Self LLM API';
this.icon = { light: 'file:llm.svg', dark: 'file:llm.svg' };
this.documentationUrl = 'https://llm.local.cn/ai';
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: 'http://llm.local.cn/ai',
url: '',
method: 'POST',
body: {
api_name: 'wd_a_desc',
token: '={{$credentials.apiKey}}',
params: {
offset: 0,
limit: 10
},
fields: 'code,trade_code,name,compname,compnameeng,isincode,exchmarket,listboard,list_date,delist_date,crncy_code,pinyin,listboardname,is_shsc,compcode',
},
},
};
}
}
exports.SelfLLMApi = SelfLLMApi;
//# sourceMappingURL=SelfLLMApi.credentials.js.map