Skip to content

Commit d6d3d2b

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 ac9543a commit d6d3d2b

File tree

5 files changed

+19
-21
lines changed

5 files changed

+19
-21
lines changed

‎api/package.json

+2-2
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",

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

+2-5
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

‎api/utils/loadYaml.js

+1-1
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

‎deploy-compose.yml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ services:
2323
- MEILI_HOST=http://meilisearch:7700
2424
volumes:
2525
- ./images:/app/client/public/images
26+
- ./librechat.yaml:/app/librechat.yaml
2627
client:
2728
build:
2829
context: .

‎package-lock.json

+13-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)