Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

🔧 fix: langchain packages mismatch, mount config file for `deploy-compose.yaml`, silence config not found error (#1481)

Danny Avilad6d3d2ba139f
diff --git a/api/package.json b/api/package.json
index 56d1a7e59b..38e63ba5c9 100644
--- a/api/package.json
+++ b/api/package.json
@@ -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",
diff --git a/api/server/services/Files/Firebase/initialize.js b/api/server/services/Files/Firebase/initialize.js
index 5dc1f93791..67d923c44f 100644
--- a/api/server/services/Files/Firebase/initialize.js
+++ b/api/server/services/Files/Firebase/initialize.js
@@ -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;
};
diff --git a/api/utils/loadYaml.js b/api/utils/loadYaml.js
index eec7e2ec6c..b7068e209f 100644
--- a/api/utils/loadYaml.js
+++ b/api/utils/loadYaml.js
@@ -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);
}
}
diff --git a/deploy-compose.yml b/deploy-compose.yml
index e811578bde..4f432c31e0 100644
--- a/deploy-compose.yml
+++ b/deploy-compose.yml
@@ -23,6 +23,7 @@ services:
- MEILI_HOST=http://meilisearch:7700
volumes:
- ./images:/app/client/public/images
+ - ./librechat.yaml:/app/librechat.yaml
client:
build:
context: .
diff --git a/package-lock.json b/package-lock.json
index 806b828ce5..bd7b518ec4 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -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"