Skip to content

Commit

Permalink
Merge pull request #1452 from vinodkiran/CHORE/Upgrade-Analytic-Depen…
Browse files Browse the repository at this point in the history
…dencies

chore/Upgrading of analytic dependencies - langfuse and langsmith.
  • Loading branch information
HenryHengZJ authored Jan 4, 2024
2 parents 247f1e9 + 1d1c6cd commit d20debc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@
"husky": "^8.0.3",
"ioredis": "^5.3.2",
"langchain": "^0.0.214",
"langfuse": "^1.2.0",
"langfuse-langchain": "^1.0.31",
"langsmith": "^0.0.53",
"langfuse": "2.0.2",
"langfuse-langchain": "2.0.2",
"langsmith": "0.0.53",
"linkifyjs": "^4.1.1",
"llmonitor": "^0.5.5",
"mammoth": "^1.5.1",
Expand Down
6 changes: 3 additions & 3 deletions packages/components/src/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ export class AnalyticHandler {
if (trace) {
const generation = trace.generation({
name,
prompt: input
input: input
})
this.handlers['langFuse'].generation = { [generation.id]: generation }
returnIds['langFuse'].generation = generation.id
Expand Down Expand Up @@ -583,7 +583,7 @@ export class AnalyticHandler {
const generation: LangfuseGenerationClient | undefined = this.handlers['langFuse'].generation[returnIds['langFuse'].generation]
if (generation) {
generation.end({
completion: output
output: output
})
}
}
Expand Down Expand Up @@ -618,7 +618,7 @@ export class AnalyticHandler {
const generation: LangfuseGenerationClient | undefined = this.handlers['langFuse'].generation[returnIds['langFuse'].generation]
if (generation) {
generation.end({
completion: error
output: error
})
}
}
Expand Down

0 comments on commit d20debc

Please sign in to comment.