mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 21:00:58 +03:00
Upgrading of analytic dependencies - langfuse and langsmith.
This commit is contained in:
@@ -53,9 +53,9 @@
|
|||||||
"husky": "^8.0.3",
|
"husky": "^8.0.3",
|
||||||
"ioredis": "^5.3.2",
|
"ioredis": "^5.3.2",
|
||||||
"langchain": "^0.0.196",
|
"langchain": "^0.0.196",
|
||||||
"langfuse": "^1.2.0",
|
"langfuse": "2.0.2",
|
||||||
"langfuse-langchain": "^1.0.31",
|
"langfuse-langchain": "2.0.2",
|
||||||
"langsmith": "^0.0.49",
|
"langsmith": "0.0.53",
|
||||||
"linkifyjs": "^4.1.1",
|
"linkifyjs": "^4.1.1",
|
||||||
"llmonitor": "^0.5.5",
|
"llmonitor": "^0.5.5",
|
||||||
"mammoth": "^1.5.1",
|
"mammoth": "^1.5.1",
|
||||||
|
|||||||
@@ -536,9 +536,10 @@ export class AnalyticHandler {
|
|||||||
if (Object.prototype.hasOwnProperty.call(this.handlers, 'langFuse')) {
|
if (Object.prototype.hasOwnProperty.call(this.handlers, 'langFuse')) {
|
||||||
const trace: LangfuseTraceClient | undefined = this.handlers['langFuse'].trace[parentIds['langFuse'].trace]
|
const trace: LangfuseTraceClient | undefined = this.handlers['langFuse'].trace[parentIds['langFuse'].trace]
|
||||||
if (trace) {
|
if (trace) {
|
||||||
|
trace.id
|
||||||
const generation = trace.generation({
|
const generation = trace.generation({
|
||||||
name,
|
name,
|
||||||
prompt: input
|
input: input
|
||||||
})
|
})
|
||||||
this.handlers['langFuse'].generation = { [generation.id]: generation }
|
this.handlers['langFuse'].generation = { [generation.id]: generation }
|
||||||
returnIds['langFuse'].generation = generation.id
|
returnIds['langFuse'].generation = generation.id
|
||||||
@@ -583,7 +584,7 @@ export class AnalyticHandler {
|
|||||||
const generation: LangfuseGenerationClient | undefined = this.handlers['langFuse'].generation[returnIds['langFuse'].generation]
|
const generation: LangfuseGenerationClient | undefined = this.handlers['langFuse'].generation[returnIds['langFuse'].generation]
|
||||||
if (generation) {
|
if (generation) {
|
||||||
generation.end({
|
generation.end({
|
||||||
completion: output
|
output: output
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -618,7 +619,7 @@ export class AnalyticHandler {
|
|||||||
const generation: LangfuseGenerationClient | undefined = this.handlers['langFuse'].generation[returnIds['langFuse'].generation]
|
const generation: LangfuseGenerationClient | undefined = this.handlers['langFuse'].generation[returnIds['langFuse'].generation]
|
||||||
if (generation) {
|
if (generation) {
|
||||||
generation.end({
|
generation.end({
|
||||||
completion: error
|
output: error
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user