mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-07-10 16:23:44 +00:00
style: format Langfuse fanout config
This commit is contained in:
parent
bd1bfdd485
commit
5733145d4a
1 changed files with 4 additions and 2 deletions
|
|
@ -66,7 +66,8 @@ export function buildLangfuseConfig({
|
|||
fanout?.enabled !== false &&
|
||||
(fanout?.enabled === true || process.env.LANGFUSE_FANOUT_ENABLED === 'true');
|
||||
const fanoutCollectorUrl =
|
||||
normalizeString(fanout?.collectorUrl) ?? normalizeString(process.env.LANGFUSE_FANOUT_COLLECTOR_URL);
|
||||
normalizeString(fanout?.collectorUrl) ??
|
||||
normalizeString(process.env.LANGFUSE_FANOUT_COLLECTOR_URL);
|
||||
const tenantExportEnabled = hasTenantCredentials && fanoutEnabled && isTenantExportEnabled();
|
||||
|
||||
if (hasTenantCredentials && (!fanoutEnabled || tenantExportEnabled)) {
|
||||
|
|
@ -74,7 +75,8 @@ export function buildLangfuseConfig({
|
|||
langfuse.secretKey = secretKey;
|
||||
}
|
||||
|
||||
const baseUrl = fanoutEnabled && fanoutCollectorUrl ? fanoutCollectorUrl : normalizeString(config?.baseUrl);
|
||||
const baseUrl =
|
||||
fanoutEnabled && fanoutCollectorUrl ? fanoutCollectorUrl : normalizeString(config?.baseUrl);
|
||||
if (baseUrl) {
|
||||
langfuse.baseUrl = baseUrl;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue