mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 21:00:58 +03:00
add analytic
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
import { INodeParams, INodeCredential } from '../src/Interface'
|
||||
|
||||
class LangfuseApi implements INodeCredential {
|
||||
label: string
|
||||
name: string
|
||||
version: number
|
||||
description: string
|
||||
inputs: INodeParams[]
|
||||
|
||||
constructor() {
|
||||
this.label = 'Langfuse API'
|
||||
this.name = 'langfuseApi'
|
||||
this.version = 1.0
|
||||
this.description =
|
||||
'Refer to <a target="_blank" href="https://langfuse.com/docs/get-started/">official guide</a> on how to get API key on Langfuse'
|
||||
this.inputs = [
|
||||
{
|
||||
label: 'Secret Key',
|
||||
name: 'langFuseSecretKey',
|
||||
type: 'password',
|
||||
placeholder: 'sk-lf-abcdefg'
|
||||
},
|
||||
{
|
||||
label: 'Public Key',
|
||||
name: 'langFusePublicKey',
|
||||
type: 'string',
|
||||
placeholder: 'pk-lf-abcdefg'
|
||||
},
|
||||
{
|
||||
label: 'Endpoint',
|
||||
name: 'langFuseEndpoint',
|
||||
type: 'string',
|
||||
default: 'https://cloud.langfuse.com'
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = { credClass: LangfuseApi }
|
||||
@@ -0,0 +1,33 @@
|
||||
import { INodeParams, INodeCredential } from '../src/Interface'
|
||||
|
||||
class LangsmithApi implements INodeCredential {
|
||||
label: string
|
||||
name: string
|
||||
version: number
|
||||
description: string
|
||||
inputs: INodeParams[]
|
||||
|
||||
constructor() {
|
||||
this.label = 'Langsmith API'
|
||||
this.name = 'langsmithApi'
|
||||
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: 'API Key',
|
||||
name: 'langSmithApiKey',
|
||||
type: 'password',
|
||||
placeholder: '<LANGSMITH_API_KEY>'
|
||||
},
|
||||
{
|
||||
label: 'Endpoint',
|
||||
name: 'langSmithEndpoint',
|
||||
type: 'string',
|
||||
default: 'https://api.smith.langchain.com'
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = { credClass: LangsmithApi }
|
||||
Reference in New Issue
Block a user