Skip to content

Commit 49253f6

Browse files
authored
🔧 fix: langchain packages mismatch, mount config file for deploy-compose.yaml, silence config not found error (danny-avila#1481)
* 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
1 parent f14e34f commit 49253f6

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

‎package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"@azure/search-documents": "^12.0.0",
3232
"@keyv/mongo": "^2.1.8",
3333
"@keyv/redis": "^2.8.1",
34-
"@langchain/google-genai": "^0.0.2",
34+
"@langchain/google-genai": "^0.0.7",
3535
"axios": "^1.3.4",
3636
"bcryptjs": "^2.4.3",
3737
"cheerio": "^1.0.0-rc.12",
@@ -54,7 +54,7 @@
5454
"keyv": "^4.5.4",
5555
"keyv-file": "^0.2.0",
5656
"klona": "^2.0.6",
57-
"langchain": "^0.0.213",
57+
"langchain": "^0.0.214",
5858
"librechat-data-provider": "*",
5959
"lodash": "^4.17.21",
6060
"meilisearch": "^0.33.0",

‎server/services/Files/Firebase/initialize.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,13 @@ const initializeFirebase = () => {
2121
};
2222

2323
if (Object.values(firebaseConfig).some((value) => !value)) {
24-
i === 0 &&
25-
logger.info(
26-
'[Optional] Firebase configuration missing or incomplete. Firebase will not be initialized.',
27-
);
24+
i === 0 && logger.info('[Optional] CDN not initialized.');
2825
i++;
2926
return null;
3027
}
3128

3229
firebaseApp = firebase.initializeApp(firebaseConfig);
33-
logger.info('Firebase initialized');
30+
logger.info('Firebase CDN initialized');
3431
return firebaseApp;
3532
};
3633

‎utils/loadYaml.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function loadYaml(filepath) {
66
let fileContents = fs.readFileSync(filepath, 'utf8');
77
return yaml.load(fileContents);
88
} catch (e) {
9-
console.error(e);
9+
// console.error(e);
1010
}
1111
}
1212

0 commit comments

Comments
 (0)