🚀 feat: Add Gemini 2.0 Support, Update Packages and Deprecations#4951
Merged
Conversation
8 tasks
1 task
Tsounguinzo
pushed a commit
to Tsounguinzo/LibreChat
that referenced
this pull request
Dec 14, 2024
…ny-avila#4951) * chore: Comment out deprecated MongoDB connection options in connectDb.js * replaced deprecrated MongoDB count() function with countDocuments() * npm audit fix (package-lock cleanup) * chore: Specify .env file in launch configuration * feat: gemini-2.0 * chore: bump express to 4.21.2 to address CVE-2024-52798 * chore: remove redundant comment for .env file specification in launch configuration --------- Co-authored-by: neturmel <neturmel@gmx.de>
MichielMAnalytics
pushed a commit
to MichielMAnalytics/ProAI
that referenced
this pull request
Jun 6, 2025
…ny-avila#4951) * chore: Comment out deprecated MongoDB connection options in connectDb.js * replaced deprecrated MongoDB count() function with countDocuments() * npm audit fix (package-lock cleanup) * chore: Specify .env file in launch configuration * feat: gemini-2.0 * chore: bump express to 4.21.2 to address CVE-2024-52798 * chore: remove redundant comment for .env file specification in launch configuration --------- Co-authored-by: neturmel <neturmel@gmx.de>
mcbuckeye
pushed a commit
to mcbuckeye/LibreChat
that referenced
this pull request
Aug 27, 2025
…ny-avila#4951) * chore: Comment out deprecated MongoDB connection options in connectDb.js * replaced deprecrated MongoDB count() function with countDocuments() * npm audit fix (package-lock cleanup) * chore: Specify .env file in launch configuration * feat: gemini-2.0 * chore: bump express to 4.21.2 to address CVE-2024-52798 * chore: remove redundant comment for .env file specification in launch configuration --------- Co-authored-by: neturmel <neturmel@gmx.de>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
I added support for the Gemini 2.0 model, updated Express to address a security vulnerability, specified the
.envfile in the launch configuration, and fixed deprecated MongoDB functions and options.Added Gemini 2.0 support:
.env.exampleto includegemini-2.0-flash-expinGOOGLE_MODELS.'gemini-2.0'totokenValuesinapi/models/tx.js.'gemini-2.0'togoogleModelsinapi/utils/tokens.js.packages/data-provider/package.jsonto0.7.59.'gemini-2.0'tovisionModelsinpackages/data-provider/src/config.ts.Updated Express to version 4.21.2 to address CVE-2024-52798:
api/package.jsonto update Express from^4.21.1to^4.21.2.path-to-regexpReDoS in 0.1.x (CVE-2024-52798, CVE-2024-45296) expressjs/express#6216Specified the
.envfile in the launch configuration:"envFile": "${workspaceFolder}/.env"in.vscode/launch.json.Fixed deprecated MongoDB functions and options:
count()withcountDocuments()inconfig/user-stats.js.useNewUrlParseranduseUnifiedTopologyinapi/lib/db/connectDb.js.Change Type
Testing
I tested the addition of the Gemini 2.0 model by initiating conversations using the new model and verifying that responses are generated correctly. I ensured that the application runs without warnings or errors due to the updated dependencies and deprecated function replacements. I confirmed that the MongoDB connections work successfully without the deprecated options and that counting functions return correct results. I also verified that the
.envfile is correctly loaded in the launch configuration.Test Configuration:
Checklist