Remove unnecessary Langfuse inputs

This commit is contained in:
Marc Klingen
2023-10-12 15:25:04 +02:00
parent c419274c06
commit 3137905995
2 changed files with 0 additions and 27 deletions
-6
View File
@@ -238,9 +238,6 @@ export const additionalCallbacks = async (nodeData: INodeData, options: ICommonO
}) })
callbacks.push(tracer) callbacks.push(tracer)
} else if (provider === 'langFuse') { } else if (provider === 'langFuse') {
const flushAt = analytic[provider].flushAt as string
const flushInterval = analytic[provider].flushInterval as string
const requestTimeout = analytic[provider].requestTimeout as string
const release = analytic[provider].release as string const release = analytic[provider].release as string
const langFuseSecretKey = getCredentialParam('langFuseSecretKey', credentialData, nodeData) const langFuseSecretKey = getCredentialParam('langFuseSecretKey', credentialData, nodeData)
@@ -252,9 +249,6 @@ export const additionalCallbacks = async (nodeData: INodeData, options: ICommonO
publicKey: langFusePublicKey, publicKey: langFusePublicKey,
baseUrl: langFuseEndpoint ?? 'https://cloud.langfuse.com' baseUrl: langFuseEndpoint ?? 'https://cloud.langfuse.com'
} }
if (flushAt) langFuseOptions.flushAt = parseInt(flushAt, 10)
if (flushInterval) langFuseOptions.flushInterval = parseInt(flushInterval, 10)
if (requestTimeout) langFuseOptions.requestTimeout = parseInt(requestTimeout, 10)
if (release) langFuseOptions.release = release if (release) langFuseOptions.release = release
const handler = new CallbackHandler(langFuseOptions) const handler = new CallbackHandler(langFuseOptions)
@@ -81,27 +81,6 @@ const analyticProviders = [
type: 'credential', type: 'credential',
credentialNames: ['langfuseApi'] credentialNames: ['langfuseApi']
}, },
{
label: 'Flush At',
name: 'flushAt',
type: 'number',
optional: true,
description: 'Number of queued requests'
},
{
label: 'Flush Interval',
name: 'flushInterval',
type: 'number',
optional: true,
description: 'Interval in ms to flush requests'
},
{
label: 'Request Timeout',
name: 'requestTimeout',
type: 'number',
optional: true,
description: 'Timeout in ms for requests'
},
{ {
label: 'Release', label: 'Release',
name: 'release', name: 'release',