Add ModelDefinitions to ModelConfigService

This commit is contained in:
Kevin Wang
2026-03-13 08:25:03 +00:00
parent b6beab9480
commit bdbb996a2e
16 changed files with 403 additions and 41 deletions
@@ -109,7 +109,7 @@ export const BrowserAgentDefinition = (
): LocalAgentDefinition<typeof BrowserTaskResultSchema> => {
// Use Preview Flash model if the main model is any of the preview models.
// If the main model is not a preview model, use the default flash model.
const model = isPreviewModel(config.getModel())
const model = isPreviewModel(config.getModel(), config)
? PREVIEW_GEMINI_FLASH_MODEL
: DEFAULT_GEMINI_FLASH_MODEL;