UNPKG

@solinker/nodes-deepl

Version:

DeepL是德国的一家为语言开发人工智能的深度学习公司,成立于2009年,原名Linguee,并推出了用于翻译的互联网搜索引擎。 Linguee曾应答了超过10亿用户的100多亿次查询。 2017年,公司推出了基于机器翻译系统的DeepL翻译器。

50 lines 1.58 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DeepLApi = void 0; class DeepLApi { constructor() { this.name = 'deepLApi'; this.displayName = 'DeepL API'; this.documentationUrl = 'https://www.deepl.com/docs-api'; this.properties = [ { displayName: 'DeepL API版本', name: 'apiUrl', type: 'options', options: [ { name: 'DeepL API Free', value: 'https://api-free.deepl.com', }, { name: 'DeepL API Pro', value: 'https://api.deepl.com', }, ], default: 'https://api-free.deepl.com', required: true, }, { displayName: 'DeepL-Auth-Key', name: 'authKey', type: 'string', typeOptions: { password: true, }, default: '', required: true, description: '在DeepL账号管理后台即可查看', }, ]; this.authenticate = { type: 'generic', properties: { headers: { Authorization: '={{"DeepL-Auth-Key " + $credentials.authKey}}', }, }, }; } } exports.DeepLApi = DeepLApi; //# sourceMappingURL=DeepLApi.credentials.js.map