Update default flash lite tool model

This commit is contained in:
davidapierce
2026-05-14 16:30:04 +00:00
committed by Sri Pasumarthi
parent f54f63cd4c
commit a57f33acbc
12 changed files with 155 additions and 54 deletions
@@ -10,6 +10,7 @@ import {
getDisplayString,
PREVIEW_GEMINI_3_1_MODEL,
PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL,
GEMINI_3_1_FLASH_LITE_MODEL,
isProModel,
} from '../config/models.js';
@@ -185,7 +186,11 @@ export class ModelConfigService {
if (context.hasAccessToProModel === false && isProModel(id))
return false;
if (id === PREVIEW_GEMINI_3_1_MODEL && !useGemini31) return false;
if (id === PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL && !useGemini31FlashLite)
if (
(id === PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL ||
id === GEMINI_3_1_FLASH_LITE_MODEL) &&
!useGemini31FlashLite
)
return false;
return true;
})