Adding support for LLMonitor

This commit is contained in:
vinodkiran
2023-09-20 14:31:52 +05:30
parent 79545d0e9b
commit f85c935983
7 changed files with 102 additions and 4 deletions
@@ -0,0 +1,33 @@
import { INodeParams, INodeCredential } from '../src/Interface'
class LLMonitorApi implements INodeCredential {
label: string
name: string
version: number
description: string
inputs: INodeParams[]
constructor() {
this.label = 'LLMonitor API'
this.name = 'llmonitorApi'
this.version = 1.0
this.description =
'Refer to <a target="_blank" href="https://docs.smith.langchain.com/">official guide</a> on how to get API key on Langsmith'
this.inputs = [
{
label: 'APP ID',
name: 'llmonitorAppId',
type: 'password',
placeholder: '<LLMonitor_APP_ID>'
},
{
label: 'Endpoint',
name: 'llmonitorEndpoint',
type: 'string',
default: 'https://app.llmonitor.com'
}
]
}
}
module.exports = { credClass: LLMonitorApi }