🔧 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:
Danny Avila 2025-01-22 07:50:09 -05:00 committed by GitHub
parent 2d3dd9e351
commit 87383fec27
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 48 additions and 5 deletions

View file

@ -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);