mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-21 02:40:14 +01:00
🔧 chore: Update Deepseek Pricing, Google Safety Settings (#5409)
* fix: google-thinking model safety settings fix * chore: update pricing/context for deepseek models * ci: update Deepseek model token limits to use dynamic mapping
This commit is contained in:
parent
2d3dd9e351
commit
87383fec27
6 changed files with 48 additions and 5 deletions
|
|
@ -87,7 +87,8 @@ function getLLMConfig(credentials, options = {}) {
|
|||
maxRetries: 2,
|
||||
};
|
||||
|
||||
const isGemini2 = llmConfig.model.includes('gemini-2.0');
|
||||
/** Used only for Safety Settings */
|
||||
const isGemini2 = llmConfig.model.includes('gemini-2.0') && !llmConfig.model.includes('thinking');
|
||||
const isGenerativeModel = llmConfig.model.includes('gemini');
|
||||
const isChatModel = !isGenerativeModel && llmConfig.model.includes('chat');
|
||||
const isTextModel = !isGenerativeModel && !isChatModel && /code|text/.test(llmConfig.model);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue