Skip to content

Commit d20debc

Browse files
authored
Merge pull request FlowiseAI#1452 from vinodkiran/CHORE/Upgrade-Analytic-Dependencies
chore/Upgrading of analytic dependencies - langfuse and langsmith.
2 parents 247f1e9 + 1d1c6cd commit d20debc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/components/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@
5353
"husky": "^8.0.3",
5454
"ioredis": "^5.3.2",
5555
"langchain": "^0.0.214",
56-
"langfuse": "^1.2.0",
57-
"langfuse-langchain": "^1.0.31",
58-
"langsmith": "^0.0.53",
56+
"langfuse": "2.0.2",
57+
"langfuse-langchain": "2.0.2",
58+
"langsmith": "0.0.53",
5959
"linkifyjs": "^4.1.1",
6060
"llmonitor": "^0.5.5",
6161
"mammoth": "^1.5.1",

packages/components/src/handler.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ export class AnalyticHandler {
538538
if (trace) {
539539
const generation = trace.generation({
540540
name,
541-
prompt: input
541+
input: input
542542
})
543543
this.handlers['langFuse'].generation = { [generation.id]: generation }
544544
returnIds['langFuse'].generation = generation.id
@@ -583,7 +583,7 @@ export class AnalyticHandler {
583583
const generation: LangfuseGenerationClient | undefined = this.handlers['langFuse'].generation[returnIds['langFuse'].generation]
584584
if (generation) {
585585
generation.end({
586-
completion: output
586+
output: output
587587
})
588588
}
589589
}
@@ -618,7 +618,7 @@ export class AnalyticHandler {
618618
const generation: LangfuseGenerationClient | undefined = this.handlers['langFuse'].generation[returnIds['langFuse'].generation]
619619
if (generation) {
620620
generation.end({
621-
completion: error
621+
output: error
622622
})
623623
}
624624
}

0 commit comments

Comments
 (0)