v0.7.6 (#5064)

* docs: Update README to include Model Context Protocol support and enhance access descriptions

* fix: Update civic integrity threshold to use 'BLOCK_NONE' as default

* fix: Update GOOGLE_MODELS in .env.example and adjust civic integrity threshold for new model compatibility

*  v0.7.6

* feat: Add 'gemini-2.0-flash-thinking-exp' model to googleModels context windows
This commit is contained in:
Danny Avila 2024-12-20 11:43:37 -05:00 committed by GitHub
parent 792ae03017
commit 9b118d42de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 25 additions and 22 deletions

View file

@ -917,7 +917,11 @@ class GoogleClient extends BaseClient {
},
{
category: 'HARM_CATEGORY_CIVIC_INTEGRITY',
threshold: process.env.GOOGLE_SAFETY_CIVIC_INTEGRITY || 'HARM_BLOCK_THRESHOLD_UNSPECIFIED',
/**
* Note: this was added since `gemini-2.0-flash-thinking-exp-1219` does not
* accept 'HARM_BLOCK_THRESHOLD_UNSPECIFIED' for 'HARM_CATEGORY_CIVIC_INTEGRITY'
* */
threshold: process.env.GOOGLE_SAFETY_CIVIC_INTEGRITY || 'BLOCK_NONE',
},
];
}

View file

@ -1,6 +1,6 @@
{
"name": "@librechat/backend",
"version": "v0.7.5",
"version": "v0.7.6",
"description": "",
"scripts": {
"start": "echo 'please run this from the root directory'",

View file

@ -50,6 +50,7 @@ const googleModels = {
gemini: 30720, // -2048 from max
'gemini-pro-vision': 12288, // -4096 from max
'gemini-exp': 8000,
'gemini-2.0-flash-thinking-exp': 30720, // -2048 from max
'gemini-2.0': 1048576,
'gemini-1.5': 1048576,
'text-bison-32k': 32758, // -10 from max