mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-22 07:01:07 +03:00
feat: add config override for langwatch to allow passing metadata as well (#5121)
This commit is contained in:
@@ -591,6 +591,15 @@ export const additionalCallbacks = async (nodeData: INodeData, options: ICommonO
|
||||
})
|
||||
|
||||
const trace = langwatch.getTrace()
|
||||
|
||||
if (nodeData?.inputs?.analytics?.langWatch) {
|
||||
trace.update({
|
||||
metadata: {
|
||||
...nodeData?.inputs?.analytics?.langWatch
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
callbacks.push(trace.getLangChainCallback())
|
||||
} else if (provider === 'arize') {
|
||||
const arizeApiKey = getCredentialParam('arizeApiKey', credentialData, nodeData)
|
||||
|
||||
Reference in New Issue
Block a user