mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 06:00:56 +02:00

* fix(api): version mismatch between langchain packages `@langchain/google-genai` & `langchain` * chore(loadYaml): silence config file not found error * chore: improve firebase init message when not configured (generalized) * fix(deploy-compose.yml): mount `librechat.yaml` config file
13 lines
267 B
JavaScript
13 lines
267 B
JavaScript
const fs = require('fs');
|
|
const yaml = require('js-yaml');
|
|
|
|
function loadYaml(filepath) {
|
|
try {
|
|
let fileContents = fs.readFileSync(filepath, 'utf8');
|
|
return yaml.load(fileContents);
|
|
} catch (e) {
|
|
// console.error(e);
|
|
}
|
|
}
|
|
|
|
module.exports = loadYaml;
|