mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-07-10 08:13:46 +00:00
fix: omit empty Langfuse tenant fields
This commit is contained in:
parent
0a0ce6a76c
commit
093bdde4e3
1 changed files with 8 additions and 2 deletions
|
|
@ -36,9 +36,15 @@ export function buildLangfuseConfig({
|
|||
|
||||
const langfuse: LangfuseRunConfig = {
|
||||
deterministicTraceId: true,
|
||||
metadata: mergeTraceMetadata(undefined, normalizedTenantId),
|
||||
tags: mergeTags(undefined, normalizedTenantId),
|
||||
};
|
||||
const metadata = mergeTraceMetadata(undefined, normalizedTenantId);
|
||||
const tags = mergeTags(undefined, normalizedTenantId);
|
||||
if (metadata) {
|
||||
langfuse.metadata = metadata;
|
||||
}
|
||||
if (tags) {
|
||||
langfuse.tags = tags;
|
||||
}
|
||||
|
||||
if (config?.enabled === false) {
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue