mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-21 21:50:49 +02:00
🔧 fix: langchain packages mismatch, mount config file for deploy-compose.yaml
, silence config not found error (#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
This commit is contained in:
parent
ac9543a673
commit
d6d3d2ba13
5 changed files with 19 additions and 21 deletions
|
@ -31,7 +31,7 @@
|
|||
"@azure/search-documents": "^12.0.0",
|
||||
"@keyv/mongo": "^2.1.8",
|
||||
"@keyv/redis": "^2.8.1",
|
||||
"@langchain/google-genai": "^0.0.2",
|
||||
"@langchain/google-genai": "^0.0.7",
|
||||
"axios": "^1.3.4",
|
||||
"bcryptjs": "^2.4.3",
|
||||
"cheerio": "^1.0.0-rc.12",
|
||||
|
@ -54,7 +54,7 @@
|
|||
"keyv": "^4.5.4",
|
||||
"keyv-file": "^0.2.0",
|
||||
"klona": "^2.0.6",
|
||||
"langchain": "^0.0.213",
|
||||
"langchain": "^0.0.214",
|
||||
"librechat-data-provider": "*",
|
||||
"lodash": "^4.17.21",
|
||||
"meilisearch": "^0.33.0",
|
||||
|
|
|
@ -21,16 +21,13 @@ const initializeFirebase = () => {
|
|||
};
|
||||
|
||||
if (Object.values(firebaseConfig).some((value) => !value)) {
|
||||
i === 0 &&
|
||||
logger.info(
|
||||
'[Optional] Firebase configuration missing or incomplete. Firebase will not be initialized.',
|
||||
);
|
||||
i === 0 && logger.info('[Optional] CDN not initialized.');
|
||||
i++;
|
||||
return null;
|
||||
}
|
||||
|
||||
firebaseApp = firebase.initializeApp(firebaseConfig);
|
||||
logger.info('Firebase initialized');
|
||||
logger.info('Firebase CDN initialized');
|
||||
return firebaseApp;
|
||||
};
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ function loadYaml(filepath) {
|
|||
let fileContents = fs.readFileSync(filepath, 'utf8');
|
||||
return yaml.load(fileContents);
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
// console.error(e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@ services:
|
|||
- MEILI_HOST=http://meilisearch:7700
|
||||
volumes:
|
||||
- ./images:/app/client/public/images
|
||||
- ./librechat.yaml:/app/librechat.yaml
|
||||
client:
|
||||
build:
|
||||
context: .
|
||||
|
|
26
package-lock.json
generated
26
package-lock.json
generated
|
@ -45,7 +45,7 @@
|
|||
"@azure/search-documents": "^12.0.0",
|
||||
"@keyv/mongo": "^2.1.8",
|
||||
"@keyv/redis": "^2.8.1",
|
||||
"@langchain/google-genai": "^0.0.2",
|
||||
"@langchain/google-genai": "^0.0.7",
|
||||
"axios": "^1.3.4",
|
||||
"bcryptjs": "^2.4.3",
|
||||
"cheerio": "^1.0.0-rc.12",
|
||||
|
@ -68,7 +68,7 @@
|
|||
"keyv": "^4.5.4",
|
||||
"keyv-file": "^0.2.0",
|
||||
"klona": "^2.0.6",
|
||||
"langchain": "^0.0.213",
|
||||
"langchain": "^0.0.214",
|
||||
"librechat-data-provider": "*",
|
||||
"lodash": "^4.17.21",
|
||||
"meilisearch": "^0.33.0",
|
||||
|
@ -131,9 +131,9 @@
|
|||
}
|
||||
},
|
||||
"api/node_modules/@langchain/community": {
|
||||
"version": "0.0.12",
|
||||
"resolved": "https://registry.npmjs.org/@langchain/community/-/community-0.0.12.tgz",
|
||||
"integrity": "sha512-mcm6FxxnLxSx9PiYvehGGwvcHjsVR5WXfYOwymojf/6d0apyewjOLzKsR3xx0HJVtCs8pff7NZSdDoE+jj8OcA==",
|
||||
"version": "0.0.13",
|
||||
"resolved": "https://registry.npmjs.org/@langchain/community/-/community-0.0.13.tgz",
|
||||
"integrity": "sha512-Dh7ri1ZySfX5t6Zz7+jR0kHp769j1+S4IHNyoDnzWlHfPFA5hfF9+zrRRmxV17KVCUawQNoOxgNmZnUjNMm5qg==",
|
||||
"dependencies": {
|
||||
"@langchain/core": "~0.1.5",
|
||||
"@langchain/openai": "~0.0.9",
|
||||
|
@ -565,12 +565,12 @@
|
|||
}
|
||||
},
|
||||
"api/node_modules/langchain": {
|
||||
"version": "0.0.213",
|
||||
"resolved": "https://registry.npmjs.org/langchain/-/langchain-0.0.213.tgz",
|
||||
"integrity": "sha512-nQDOJXvtIAIuUzamCiF1AWyi2GH9FSDPR+3XulJUEpdU60aSFPZ9GBiWdu+dVHXeAmm8C0iCVi0+3GWLJrUoXA==",
|
||||
"version": "0.0.214",
|
||||
"resolved": "https://registry.npmjs.org/langchain/-/langchain-0.0.214.tgz",
|
||||
"integrity": "sha512-HWdgjuqsir7MYSX3OcKW+XUFZyqhma8yfn4NU/7K5MuIz649g0SejVjuHr3rexmsOvZyHeR3XlwIsqxEtOsF7A==",
|
||||
"dependencies": {
|
||||
"@anthropic-ai/sdk": "^0.9.1",
|
||||
"@langchain/community": "~0.0.12",
|
||||
"@langchain/community": "~0.0.13",
|
||||
"@langchain/core": "~0.1.5",
|
||||
"@langchain/openai": "~0.0.9",
|
||||
"binary-extensions": "^2.2.0",
|
||||
|
@ -6501,12 +6501,12 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@langchain/google-genai": {
|
||||
"version": "0.0.2",
|
||||
"resolved": "https://registry.npmjs.org/@langchain/google-genai/-/google-genai-0.0.2.tgz",
|
||||
"integrity": "sha512-Q6zgVeZ0IzD976LGhwl86RwyTn6zpdwltVTYGEEag3AyT3zDzALPiyEfORFxublQjIVeIoTiyDJ9MT9nXb1xwg==",
|
||||
"version": "0.0.7",
|
||||
"resolved": "https://registry.npmjs.org/@langchain/google-genai/-/google-genai-0.0.7.tgz",
|
||||
"integrity": "sha512-0VUrzVRS5PW/HhGVdTelDZd8DJVXdyLj2KqHpUNWdXNNMKaLVV6AY2nwqKLA3I4SV0VfOt1/XoZAgPIpQfn4Ow==",
|
||||
"dependencies": {
|
||||
"@google/generative-ai": "^0.1.0",
|
||||
"@langchain/core": "~0.1.0"
|
||||
"@langchain/core": "~0.1.5"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue