Feat/added chattBaiduWenxin chat model (#2752)

* added cahtBaiduWenxin model

* fix linting

* fixed linting

* added baidu secret key
This commit is contained in:
Mubashir Shariq
2024-07-05 15:55:37 +05:30
committed by GitHub
parent cacbfa8162
commit dfdeb02b3a
4 changed files with 117 additions and 1 deletions
@@ -0,0 +1,28 @@
import { INodeParams, INodeCredential } from '../src/Interface'
class BaiduApi implements INodeCredential {
label: string
name: string
version: number
inputs: INodeParams[]
constructor() {
this.label = 'Baidu API'
this.name = 'baiduApi'
this.version = 1.0
this.inputs = [
{
label: 'Baidu Api Key',
name: 'baiduApiKey',
type: 'password'
},
{
label: 'Baidu Secret Key',
name: 'baiduSecretKey',
type: 'password'
}
]
}
}
module.exports = { credClass: BaiduApi }