mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-16 13:00:55 +00:00
* 🏺 fix: Preserve Last Good Config on Reload
* fix: Restore Reload Cap and OpenRouter Defaults
---------
Co-authored-by: Lia <lia@librechat.ai>
11 lines
402 B
JavaScript
11 lines
402 B
JavaScript
const path = require('path');
|
|
const { loadYaml, redactConfigSecretMaps, createCustomConfigLoader } = require('@librechat/api');
|
|
|
|
const projectRoot = path.resolve(__dirname, '..', '..', '..', '..');
|
|
const defaultConfigPath = path.resolve(projectRoot, 'librechat.yaml');
|
|
|
|
module.exports = createCustomConfigLoader({
|
|
loadLocal: loadYaml,
|
|
defaultConfigPath,
|
|
redactConfig: redactConfigSecretMaps,
|
|
});
|