mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 23:01:09 +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()
|
const trace = langwatch.getTrace()
|
||||||
|
|
||||||
|
if (nodeData?.inputs?.analytics?.langWatch) {
|
||||||
|
trace.update({
|
||||||
|
metadata: {
|
||||||
|
...nodeData?.inputs?.analytics?.langWatch
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
callbacks.push(trace.getLangChainCallback())
|
callbacks.push(trace.getLangChainCallback())
|
||||||
} else if (provider === 'arize') {
|
} else if (provider === 'arize') {
|
||||||
const arizeApiKey = getCredentialParam('arizeApiKey', credentialData, nodeData)
|
const arizeApiKey = getCredentialParam('arizeApiKey', credentialData, nodeData)
|
||||||
|
|||||||
Reference in New Issue
Block a user