From 214e7c8dc78612cab5efe87a9885220c221a8653 Mon Sep 17 00:00:00 2001 From: Marc Klingen Date: Thu, 7 Mar 2024 02:25:30 +0100 Subject: [PATCH] upgrade langfuse and add sdkIntegration tag --- packages/components/package.json | 4 ++-- packages/components/src/handler.ts | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/components/package.json b/packages/components/package.json index 69ca3b5f38f..6e2a977a33f 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -65,8 +65,8 @@ "ioredis": "^5.3.2", "jsonpointer": "^5.0.1", "langchain": "^0.1.20", - "langfuse": "3.1.0", - "langfuse-langchain": "^3.1.0", + "langfuse": "3.3.1", + "langfuse-langchain": "^3.3.1", "langsmith": "0.1.6", "linkifyjs": "^4.1.1", "llamaindex": "^0.0.48", diff --git a/packages/components/src/handler.ts b/packages/components/src/handler.ts index cc6499b1ed8..3b18e0ac45e 100644 --- a/packages/components/src/handler.ts +++ b/packages/components/src/handler.ts @@ -261,7 +261,8 @@ export const additionalCallbacks = async (nodeData: INodeData, options: ICommonO let langFuseOptions: any = { secretKey: langFuseSecretKey, publicKey: langFusePublicKey, - baseUrl: langFuseEndpoint ?? 'https://cloud.langfuse.com' + baseUrl: langFuseEndpoint ?? 'https://cloud.langfuse.com', + sdkIntegration: 'Flowise' } if (release) langFuseOptions.release = release if (options.chatId) langFuseOptions.sessionId = options.chatId @@ -340,6 +341,7 @@ export class AnalyticHandler { secretKey: langFuseSecretKey, publicKey: langFusePublicKey, baseUrl: langFuseEndpoint ?? 'https://cloud.langfuse.com', + sdkIntegration: 'Flowise', release }) this.handlers['langFuse'] = { client: langfuse }