mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 13:00:56 +03:00
Feature/OpenAI Assistant V2 (#2258)
* add gpt4 turbo to assistant * OpenAI Assistant V2 * update langfuse handler
This commit is contained in:
@@ -420,6 +420,11 @@ export class AnalyticHandler {
|
||||
}
|
||||
|
||||
if (langfuseTraceClient) {
|
||||
langfuseTraceClient.update({
|
||||
input: {
|
||||
text: input
|
||||
}
|
||||
})
|
||||
const span = langfuseTraceClient.span({
|
||||
name,
|
||||
input: {
|
||||
@@ -472,6 +477,14 @@ export class AnalyticHandler {
|
||||
span.end({
|
||||
output
|
||||
})
|
||||
const langfuseTraceClient = this.handlers['langFuse'].trace[returnIds['langFuse'].trace]
|
||||
if (langfuseTraceClient) {
|
||||
langfuseTraceClient.update({
|
||||
output: {
|
||||
output
|
||||
}
|
||||
})
|
||||
}
|
||||
if (shutdown) {
|
||||
const langfuse: Langfuse = this.handlers['langFuse'].client
|
||||
await langfuse.shutdownAsync()
|
||||
@@ -513,6 +526,14 @@ export class AnalyticHandler {
|
||||
error
|
||||
}
|
||||
})
|
||||
const langfuseTraceClient = this.handlers['langFuse'].trace[returnIds['langFuse'].trace]
|
||||
if (langfuseTraceClient) {
|
||||
langfuseTraceClient.update({
|
||||
output: {
|
||||
error
|
||||
}
|
||||
})
|
||||
}
|
||||
if (shutdown) {
|
||||
const langfuse: Langfuse = this.handlers['langFuse'].client
|
||||
await langfuse.shutdownAsync()
|
||||
|
||||
Reference in New Issue
Block a user