@google/gemini-cli-a2a-server 0.36.0-preview.6 → 0.36.0-preview.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -117400,10 +117400,11 @@ var init_diffOptions = __esm({
117400
117400
  });
117401
117401
 
117402
117402
  // packages/core/dist/src/config/models.js
117403
- function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel = false, hasAccessToPreview = true, config3) {
117403
+ function resolveModel(requestedModel, useGemini3_1 = false, useGemini3_1FlashLite = false, useCustomToolModel = false, hasAccessToPreview = true, config3) {
117404
117404
  if (config3?.getExperimentalDynamicModelConfiguration?.() === true) {
117405
117405
  const resolved2 = config3.modelConfigService.resolveModelId(requestedModel, {
117406
117406
  useGemini3_1,
117407
+ useGemini3_1FlashLite,
117407
117408
  useCustomTools: useCustomToolModel,
117408
117409
  hasAccessToPreview
117409
117410
  });
@@ -117440,7 +117441,7 @@ function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel =
117440
117441
  break;
117441
117442
  }
117442
117443
  case GEMINI_MODEL_ALIAS_FLASH_LITE: {
117443
- resolved = DEFAULT_GEMINI_FLASH_LITE_MODEL;
117444
+ resolved = useGemini3_1FlashLite ? PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL : DEFAULT_GEMINI_FLASH_LITE_MODEL;
117444
117445
  break;
117445
117446
  }
117446
117447
  default: {
@@ -117452,6 +117453,8 @@ function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel =
117452
117453
  switch (resolved) {
117453
117454
  case PREVIEW_GEMINI_FLASH_MODEL:
117454
117455
  return DEFAULT_GEMINI_FLASH_MODEL;
117456
+ case PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL:
117457
+ return DEFAULT_GEMINI_FLASH_LITE_MODEL;
117455
117458
  case PREVIEW_GEMINI_MODEL:
117456
117459
  case PREVIEW_GEMINI_3_1_MODEL:
117457
117460
  case PREVIEW_GEMINI_3_1_CUSTOM_TOOLS_MODEL:
@@ -117468,10 +117471,11 @@ function resolveModel(requestedModel, useGemini3_1 = false, useCustomToolModel =
117468
117471
  }
117469
117472
  return resolved;
117470
117473
  }
117471
- function resolveClassifierModel(requestedModel, modelAlias, useGemini3_1 = false, useCustomToolModel = false, hasAccessToPreview = true, config3) {
117474
+ function resolveClassifierModel(requestedModel, modelAlias, useGemini3_1 = false, useGemini3_1FlashLite = false, useCustomToolModel = false, hasAccessToPreview = true, config3) {
117472
117475
  if (config3?.getExperimentalDynamicModelConfiguration?.() === true) {
117473
117476
  return config3.modelConfigService.resolveClassifierModelId(modelAlias, requestedModel, {
117474
117477
  useGemini3_1,
117478
+ useGemini3_1FlashLite,
117475
117479
  useCustomTools: useCustomToolModel,
117476
117480
  hasAccessToPreview
117477
117481
  });
@@ -117485,7 +117489,7 @@ function resolveClassifierModel(requestedModel, modelAlias, useGemini3_1 = false
117485
117489
  }
117486
117490
  return resolveModel(GEMINI_MODEL_ALIAS_FLASH);
117487
117491
  }
117488
- return resolveModel(requestedModel, useGemini3_1, useCustomToolModel);
117492
+ return resolveModel(requestedModel, useGemini3_1, useGemini3_1FlashLite, useCustomToolModel);
117489
117493
  }
117490
117494
  function getDisplayString(model, config3) {
117491
117495
  if (config3?.getExperimentalDynamicModelConfiguration?.() === true) {
@@ -117505,6 +117509,8 @@ function getDisplayString(model, config3) {
117505
117509
  return PREVIEW_GEMINI_FLASH_MODEL;
117506
117510
  case PREVIEW_GEMINI_3_1_CUSTOM_TOOLS_MODEL:
117507
117511
  return PREVIEW_GEMINI_3_1_MODEL;
117512
+ case PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL:
117513
+ return PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL;
117508
117514
  default:
117509
117515
  return model;
117510
117516
  }
@@ -117528,7 +117534,7 @@ function isGemini2Model(model) {
117528
117534
  }
117529
117535
  function isCustomModel(model, config3) {
117530
117536
  if (config3?.getExperimentalDynamicModelConfiguration?.() === true) {
117531
- const resolved2 = resolveModel(model, false, false, true, config3);
117537
+ const resolved2 = resolveModel(model, false, false, false, true, config3);
117532
117538
  return config3.modelConfigService.getModelDefinition(resolved2)?.tier === "custom" || !resolved2.startsWith("gemini-");
117533
117539
  }
117534
117540
  const resolved = resolveModel(model);
@@ -209115,8 +209121,8 @@ var GIT_COMMIT_INFO, CLI_VERSION;
209115
209121
  var init_git_commit = __esm({
209116
209122
  "packages/core/dist/src/generated/git-commit.js"() {
209117
209123
  "use strict";
209118
- GIT_COMMIT_INFO = "975b7dc16";
209119
- CLI_VERSION = "0.36.0-preview.6";
209124
+ GIT_COMMIT_INFO = "425d64a96";
209125
+ CLI_VERSION = "0.36.0-preview.7";
209120
209126
  }
209121
209127
  });
209122
209128
 
@@ -324374,7 +324380,7 @@ var init_errorClassification = __esm({
324374
324380
  // packages/core/dist/src/availability/policyCatalog.js
324375
324381
  function getModelPolicyChain(options) {
324376
324382
  if (options.previewEnabled) {
324377
- const previewModel = resolveModel(PREVIEW_GEMINI_MODEL, options.useGemini31, options.useCustomToolModel);
324383
+ const previewModel = resolveModel(PREVIEW_GEMINI_MODEL, options.useGemini31, options.useGemini31FlashLite, options.useCustomToolModel);
324378
324384
  return [
324379
324385
  definePolicy({ model: previewModel }),
324380
324386
  definePolicy({ model: PREVIEW_GEMINI_FLASH_MODEL, isLastResort: true })
@@ -324463,14 +324469,16 @@ function resolvePolicyChain(config3, preferredModel, wrapsAround = false) {
324463
324469
  const configuredModel = config3.getModel();
324464
324470
  let chain2;
324465
324471
  const useGemini31 = config3.getGemini31LaunchedSync?.() ?? false;
324472
+ const useGemini31FlashLite = config3.getGemini31FlashLiteLaunchedSync?.() ?? false;
324466
324473
  const useCustomToolModel = config3.getUseCustomToolModelSync?.() ?? false;
324467
324474
  const hasAccessToPreview = config3.getHasAccessToPreviewModel?.() ?? true;
324468
- const resolvedModel = resolveModel(modelFromConfig, useGemini31, useCustomToolModel, hasAccessToPreview, config3);
324475
+ const resolvedModel = resolveModel(modelFromConfig, useGemini31, useGemini31FlashLite, useCustomToolModel, hasAccessToPreview, config3);
324469
324476
  const isAutoPreferred = preferredModel ? isAutoModel(preferredModel, config3) : false;
324470
324477
  const isAutoConfigured = isAutoModel(configuredModel, config3);
324471
324478
  if (config3.getExperimentalDynamicModelConfiguration?.() === true) {
324472
324479
  const context2 = {
324473
324480
  useGemini3_1: useGemini31,
324481
+ useGemini3_1FlashLite: useGemini31FlashLite,
324474
324482
  useCustomTools: useCustomToolModel
324475
324483
  };
324476
324484
  if (resolvedModel === DEFAULT_GEMINI_FLASH_LITE_MODEL) {
@@ -324499,6 +324507,7 @@ function resolvePolicyChain(config3, preferredModel, wrapsAround = false) {
324499
324507
  previewEnabled,
324500
324508
  userTier: config3.getUserTier(),
324501
324509
  useGemini31,
324510
+ useGemini31FlashLite,
324502
324511
  useCustomToolModel
324503
324512
  });
324504
324513
  } else {
@@ -324506,6 +324515,7 @@ function resolvePolicyChain(config3, preferredModel, wrapsAround = false) {
324506
324515
  previewEnabled: false,
324507
324516
  userTier: config3.getUserTier(),
324508
324517
  useGemini31,
324518
+ useGemini31FlashLite,
324509
324519
  useCustomToolModel
324510
324520
  });
324511
324521
  }
@@ -332048,7 +332058,7 @@ function getVersion() {
332048
332058
  }
332049
332059
  versionPromise = (async () => {
332050
332060
  const pkgJson = await getPackageJson(__dirname4);
332051
- return "0.36.0-preview.6";
332061
+ return "0.36.0-preview.7";
332052
332062
  })();
332053
332063
  return versionPromise;
332054
332064
  }
@@ -333400,7 +333410,7 @@ async function createContentGenerator(config3, gcConfig, sessionId2) {
333400
333410
  return new LoggingContentGenerator(fakeGenerator, gcConfig);
333401
333411
  }
333402
333412
  const version4 = await getVersion();
333403
- const model = resolveModel(gcConfig.getModel(), config3.authType === AuthType2.USE_GEMINI || config3.authType === AuthType2.USE_VERTEX_AI || (await gcConfig.getGemini31Launched?.() ?? false), false, gcConfig.getHasAccessToPreviewModel?.() ?? true, gcConfig);
333413
+ const model = resolveModel(gcConfig.getModel(), config3.authType === AuthType2.USE_GEMINI || config3.authType === AuthType2.USE_VERTEX_AI || (await gcConfig.getGemini31Launched?.() ?? false), config3.authType === AuthType2.USE_GEMINI || config3.authType === AuthType2.USE_VERTEX_AI || (await gcConfig.getGemini31FlashLiteLaunched?.() ?? false), false, gcConfig.getHasAccessToPreviewModel?.() ?? true, gcConfig);
333404
333414
  const customHeadersEnv = process.env["GEMINI_CLI_CUSTOM_HEADERS"] || void 0;
333405
333415
  const clientName = gcConfig.getClientName();
333406
333416
  const surface = determineSurface2();
@@ -380908,9 +380918,11 @@ var init_geminiChat = __esm({
380908
380918
  const initialActiveModel = this.context.config.getActiveModel();
380909
380919
  const apiCall = async () => {
380910
380920
  const useGemini3_1 = await this.context.config.getGemini31Launched?.() ?? false;
380911
- let modelToUse = resolveModel(lastModelToUse, useGemini3_1, false, this.context.config.getHasAccessToPreviewModel?.() ?? true, this.context.config);
380921
+ const useGemini3_1FlashLite = await this.context.config.getGemini31FlashLiteLaunched?.() ?? false;
380922
+ const hasAccessToPreview = this.context.config.getHasAccessToPreviewModel?.() ?? true;
380923
+ let modelToUse = resolveModel(lastModelToUse, useGemini3_1, useGemini3_1FlashLite, false, hasAccessToPreview, this.context.config);
380912
380924
  if (this.context.config.getActiveModel() !== initialActiveModel) {
380913
- modelToUse = resolveModel(this.context.config.getActiveModel(), useGemini3_1, false, this.context.config.getHasAccessToPreviewModel?.() ?? true, this.context.config);
380925
+ modelToUse = resolveModel(this.context.config.getActiveModel(), useGemini3_1, useGemini3_1FlashLite, false, hasAccessToPreview, this.context.config);
380914
380926
  }
380915
380927
  if (modelToUse !== lastModelToUse) {
380916
380928
  const { generateContentConfig: newConfig } = this.context.config.modelConfigService.getResolvedConfig({
@@ -383038,7 +383050,7 @@ var init_promptProvider = __esm({
383038
383050
  const toolNames = context2.toolRegistry.getAllToolNames();
383039
383051
  const enabledToolNames = new Set(toolNames);
383040
383052
  const approvedPlanPath = context2.config.getApprovedPlanPath();
383041
- const desiredModel = resolveModel(context2.config.getActiveModel(), context2.config.getGemini31LaunchedSync?.() ?? false, false, context2.config.getHasAccessToPreviewModel?.() ?? true, context2.config);
383053
+ const desiredModel = resolveModel(context2.config.getActiveModel(), context2.config.getGemini31LaunchedSync?.() ?? false, context2.config.getGemini31FlashLiteLaunchedSync?.() ?? false, false, context2.config.getHasAccessToPreviewModel?.() ?? true, context2.config);
383042
383054
  const isModernModel = supportsModernFeatures(desiredModel);
383043
383055
  const activeSnippets = isModernModel ? snippets_exports : snippets_legacy_exports;
383044
383056
  const contextFilenames = getAllGeminiMdFilenames();
@@ -383136,7 +383148,7 @@ var init_promptProvider = __esm({
383136
383148
  return sanitizedPrompt;
383137
383149
  }
383138
383150
  getCompressionPrompt(context2) {
383139
- const desiredModel = resolveModel(context2.config.getActiveModel(), context2.config.getGemini31LaunchedSync?.() ?? false, false, context2.config.getHasAccessToPreviewModel?.() ?? true, context2.config);
383151
+ const desiredModel = resolveModel(context2.config.getActiveModel(), context2.config.getGemini31LaunchedSync?.() ?? false, context2.config.getGemini31FlashLiteLaunchedSync?.() ?? false, false, context2.config.getHasAccessToPreviewModel?.() ?? true, context2.config);
383140
383152
  const isModernModel = supportsModernFeatures(desiredModel);
383141
383153
  const activeSnippets = isModernModel ? snippets_exports : snippets_legacy_exports;
383142
383154
  return activeSnippets.getCompressionPrompt(context2.config.getApprovedPlanPath());
@@ -384225,6 +384237,8 @@ function modelStringToModelConfigAlias(model) {
384225
384237
  return "chat-compression-3-pro";
384226
384238
  case PREVIEW_GEMINI_FLASH_MODEL:
384227
384239
  return "chat-compression-3-flash";
384240
+ case PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL:
384241
+ return "chat-compression-3.1-flash-lite";
384228
384242
  case DEFAULT_GEMINI_MODEL:
384229
384243
  return "chat-compression-2.5-pro";
384230
384244
  case DEFAULT_GEMINI_FLASH_MODEL:
@@ -385086,7 +385100,7 @@ var init_client3 = __esm({
385086
385100
  if (this.currentSequenceModel) {
385087
385101
  return this.currentSequenceModel;
385088
385102
  }
385089
- return resolveModel(this.config.getActiveModel(), this.config.getGemini31LaunchedSync?.() ?? false, false, this.config.getHasAccessToPreviewModel?.() ?? true, this.config);
385103
+ return resolveModel(this.config.getActiveModel(), this.config.getGemini31LaunchedSync?.() ?? false, this.config.getGemini31FlashLiteLaunchedSync?.() ?? false, false, this.config.getHasAccessToPreviewModel?.() ?? true, this.config);
385090
385104
  }
385091
385105
  async *processTurn(request, signal, prompt_id, boundedTurns, isInvalidStreamRetry, displayContent) {
385092
385106
  let turn = new Turn(this.getChat(), prompt_id);
@@ -391326,7 +391340,7 @@ var init_defaultStrategy = __esm({
391326
391340
  DefaultStrategy = class {
391327
391341
  name = "default";
391328
391342
  async route(_context, config3, _baseLlmClient, _localLiteRtLmClient) {
391329
- const defaultModel = resolveModel(config3.getModel(), config3.getGemini31LaunchedSync?.() ?? false, false, config3.getHasAccessToPreviewModel?.() ?? true, config3);
391343
+ const defaultModel = resolveModel(config3.getModel(), config3.getGemini31LaunchedSync?.() ?? false, config3.getGemini31FlashLiteLaunchedSync?.() ?? false, false, config3.getHasAccessToPreviewModel?.() ?? true, config3);
391330
391344
  return {
391331
391345
  model: defaultModel,
391332
391346
  metadata: {
@@ -391472,11 +391486,12 @@ Respond *only* in JSON format according to the following schema. Do not include
391472
391486
  const routerResponse = ClassifierResponseSchema2.parse(jsonResponse);
391473
391487
  const reasoning = routerResponse.reasoning;
391474
391488
  const latencyMs = Date.now() - startTime;
391475
- const [useGemini3_1, useCustomToolModel] = await Promise.all([
391489
+ const [useGemini3_1, useGemini3_1FlashLite, useCustomToolModel] = await Promise.all([
391476
391490
  config3.getGemini31Launched(),
391491
+ config3.getGemini31FlashLiteLaunched(),
391477
391492
  config3.getUseCustomToolModel()
391478
391493
  ]);
391479
- const selectedModel = resolveClassifierModel(model, routerResponse.model_choice, useGemini3_1, useCustomToolModel, config3.getHasAccessToPreviewModel?.() ?? true, config3);
391494
+ const selectedModel = resolveClassifierModel(model, routerResponse.model_choice, useGemini3_1, useGemini3_1FlashLite, useCustomToolModel, config3.getHasAccessToPreviewModel?.() ?? true, config3);
391480
391495
  return {
391481
391496
  model: selectedModel,
391482
391497
  metadata: {
@@ -391609,11 +391624,12 @@ Model: {"complexity_reasoning": "High-level architecture and strategic planning.
391609
391624
  const routerResponse = ClassifierResponseSchema3.parse(jsonResponse);
391610
391625
  const score = routerResponse.complexity_score;
391611
391626
  const { threshold, groupLabel, modelAlias } = await this.getRoutingDecision(score, config3);
391612
- const [useGemini3_1, useCustomToolModel] = await Promise.all([
391627
+ const [useGemini3_1, useGemini3_1FlashLite, useCustomToolModel] = await Promise.all([
391613
391628
  config3.getGemini31Launched(),
391629
+ config3.getGemini31FlashLiteLaunched(),
391614
391630
  config3.getUseCustomToolModel()
391615
391631
  ]);
391616
- const selectedModel = resolveClassifierModel(model, modelAlias, useGemini3_1, useCustomToolModel, config3.getHasAccessToPreviewModel?.() ?? true, config3);
391632
+ const selectedModel = resolveClassifierModel(model, modelAlias, useGemini3_1, useGemini3_1FlashLite, useCustomToolModel, config3.getHasAccessToPreviewModel?.() ?? true, config3);
391617
391633
  const latencyMs = Date.now() - startTime;
391618
391634
  return {
391619
391635
  model: selectedModel,
@@ -391717,7 +391733,7 @@ var init_fallbackStrategy = __esm({
391717
391733
  name = "fallback";
391718
391734
  async route(context2, config3, _baseLlmClient, _localLiteRtLmClient) {
391719
391735
  const requestedModel = context2.requestedModel ?? config3.getModel();
391720
- const resolvedModel = resolveModel(requestedModel, config3.getGemini31LaunchedSync?.() ?? false, false, config3.getHasAccessToPreviewModel?.() ?? true, config3);
391736
+ const resolvedModel = resolveModel(requestedModel, config3.getGemini31LaunchedSync?.() ?? false, config3.getGemini31FlashLiteLaunchedSync?.() ?? false, false, config3.getHasAccessToPreviewModel?.() ?? true, config3);
391721
391737
  const service = config3.getModelAvailabilityService();
391722
391738
  const snapshot = service.snapshot(resolvedModel);
391723
391739
  if (snapshot.available) {
@@ -391754,7 +391770,7 @@ var init_overrideStrategy = __esm({
391754
391770
  return null;
391755
391771
  }
391756
391772
  return {
391757
- model: resolveModel(overrideModel, config3.getGemini31LaunchedSync?.() ?? false, false, config3.getHasAccessToPreviewModel?.() ?? true, config3),
391773
+ model: resolveModel(overrideModel, config3.getGemini31LaunchedSync?.() ?? false, config3.getGemini31FlashLiteLaunchedSync?.() ?? false, false, config3.getHasAccessToPreviewModel?.() ?? true, config3),
391758
391774
  metadata: {
391759
391775
  source: this.name,
391760
391776
  latencyMs: 0,
@@ -391956,6 +391972,8 @@ var init_modelConfigService = __esm({
391956
391972
  switch (key) {
391957
391973
  case "useGemini3_1":
391958
391974
  return value === context2.useGemini3_1;
391975
+ case "useGemini3_1FlashLite":
391976
+ return value === context2.useGemini3_1FlashLite;
391959
391977
  case "useCustomTools":
391960
391978
  return value === context2.useCustomTools;
391961
391979
  case "hasAccessToPreview":
@@ -392430,6 +392448,11 @@ var init_defaultModelConfigs = __esm({
392430
392448
  model: "gemini-3-flash-preview"
392431
392449
  }
392432
392450
  },
392451
+ "chat-compression-3.1-flash-lite": {
392452
+ modelConfig: {
392453
+ model: "gemini-3.1-flash-lite-preview"
392454
+ }
392455
+ },
392433
392456
  "chat-compression-2.5-pro": {
392434
392457
  modelConfig: {
392435
392458
  model: "gemini-2.5-pro"
@@ -392642,6 +392665,15 @@ var init_defaultModelConfigs = __esm({
392642
392665
  "auto-gemini-2.5": {
392643
392666
  default: "gemini-2.5-pro"
392644
392667
  },
392668
+ "gemini-3.1-flash-lite-preview": {
392669
+ default: "gemini-3.1-flash-lite-preview",
392670
+ contexts: [
392671
+ {
392672
+ condition: { useGemini3_1FlashLite: false },
392673
+ target: "gemini-2.5-flash-lite"
392674
+ }
392675
+ ]
392676
+ },
392645
392677
  flash: {
392646
392678
  default: "gemini-3-flash-preview",
392647
392679
  contexts: [
@@ -392652,7 +392684,13 @@ var init_defaultModelConfigs = __esm({
392652
392684
  ]
392653
392685
  },
392654
392686
  "flash-lite": {
392655
- default: "gemini-2.5-flash-lite"
392687
+ default: "gemini-2.5-flash-lite",
392688
+ contexts: [
392689
+ {
392690
+ condition: { useGemini3_1FlashLite: true },
392691
+ target: "gemini-3.1-flash-lite-preview"
392692
+ }
392693
+ ]
392656
392694
  }
392657
392695
  },
392658
392696
  classifierIdResolutions: {
@@ -408190,8 +408228,8 @@ var init_local_executor = __esm({
408190
408228
  toolsList.push(toolRef);
408191
408229
  }
408192
408230
  }
408193
- toolsList.push(...this.toolRegistry.getFunctionDeclarations());
408194
408231
  }
408232
+ toolsList.push(...this.toolRegistry.getFunctionDeclarations(this.definition.modelConfig.model));
408195
408233
  const completeTool = {
408196
408234
  name: TASK_COMPLETE_TOOL_NAME,
408197
408235
  description: outputConfig ? "Call this tool to submit your final answer and complete the task. This is the ONLY way to finish." : "Call this tool to submit your final findings and complete the task. This is the ONLY way to finish.",
@@ -410748,7 +410786,8 @@ var init_flagNames = __esm({
410748
410786
  MASKING_PRUNABLE_THRESHOLD: 45758818,
410749
410787
  MASKING_PROTECT_LATEST_TURN: 45758819,
410750
410788
  GEMINI_3_1_PRO_LAUNCHED: 45760185,
410751
- PRO_MODEL_NO_ACCESS: 45768879
410789
+ PRO_MODEL_NO_ACCESS: 45768879,
410790
+ GEMINI_3_1_FLASH_LITE_LAUNCHED: 45771641
410752
410791
  };
410753
410792
  }
410754
410793
  });
@@ -435187,7 +435226,7 @@ var init_config4 = __esm({
435187
435226
  if (pooled.remaining !== void 0) {
435188
435227
  return pooled.remaining;
435189
435228
  }
435190
- const primaryModel = resolveModel(this.getModel(), this.getGemini31LaunchedSync());
435229
+ const primaryModel = resolveModel(this.getModel(), this.getGemini31LaunchedSync(), this.getGemini31FlashLiteLaunchedSync(), this.getUseCustomToolModelSync(), this.getHasAccessToPreviewModel(), this);
435191
435230
  return this.modelQuotas.get(primaryModel)?.remaining;
435192
435231
  }
435193
435232
  getQuotaLimit() {
@@ -435195,7 +435234,7 @@ var init_config4 = __esm({
435195
435234
  if (pooled.limit !== void 0) {
435196
435235
  return pooled.limit;
435197
435236
  }
435198
- const primaryModel = resolveModel(this.getModel(), this.getGemini31LaunchedSync());
435237
+ const primaryModel = resolveModel(this.getModel(), this.getGemini31LaunchedSync(), this.getGemini31FlashLiteLaunchedSync(), this.getUseCustomToolModelSync(), this.getHasAccessToPreviewModel(), this);
435199
435238
  return this.modelQuotas.get(primaryModel)?.limit;
435200
435239
  }
435201
435240
  getQuotaResetTime() {
@@ -435203,7 +435242,7 @@ var init_config4 = __esm({
435203
435242
  if (pooled.resetTime !== void 0) {
435204
435243
  return pooled.resetTime;
435205
435244
  }
435206
- const primaryModel = resolveModel(this.getModel(), this.getGemini31LaunchedSync());
435245
+ const primaryModel = resolveModel(this.getModel(), this.getGemini31LaunchedSync(), this.getGemini31FlashLiteLaunchedSync(), this.getUseCustomToolModelSync(), this.getHasAccessToPreviewModel(), this);
435207
435246
  return this.modelQuotas.get(primaryModel)?.resetTime;
435208
435247
  }
435209
435248
  getEmbeddingModel() {
@@ -435975,13 +436014,21 @@ ${sections.join("\n")}
435975
436014
  return this.experiments?.flags[ExperimentFlags.PRO_MODEL_NO_ACCESS]?.boolValue ?? false;
435976
436015
  }
435977
436016
  /**
435978
- * Returns whether Gemini 3.1 has been launched.
436017
+ * Returns whether Gemini 3.1 Pro has been launched.
435979
436018
  * This method is async and ensures that experiments are loaded before returning the result.
435980
436019
  */
435981
436020
  async getGemini31Launched() {
435982
436021
  await this.ensureExperimentsLoaded();
435983
436022
  return this.getGemini31LaunchedSync();
435984
436023
  }
436024
+ /**
436025
+ * Returns whether Gemini 3.1 Flash Lite has been launched.
436026
+ * This method is async and ensures that experiments are loaded before returning the result.
436027
+ */
436028
+ async getGemini31FlashLiteLaunched() {
436029
+ await this.ensureExperimentsLoaded();
436030
+ return this.getGemini31FlashLiteLaunchedSync();
436031
+ }
435985
436032
  /**
435986
436033
  * Returns whether the custom tool model should be used.
435987
436034
  */
@@ -436014,6 +436061,20 @@ ${sections.join("\n")}
436014
436061
  }
436015
436062
  return this.experiments?.flags[ExperimentFlags.GEMINI_3_1_PRO_LAUNCHED]?.boolValue ?? false;
436016
436063
  }
436064
+ /**
436065
+ * Returns whether Gemini 3.1 Flash Lite has been launched.
436066
+ *
436067
+ * Note: This method should only be called after startup, once experiments have been loaded.
436068
+ * If you need to call this during startup or from an async context, use
436069
+ * getGemini31FlashLiteLaunched instead.
436070
+ */
436071
+ getGemini31FlashLiteLaunchedSync() {
436072
+ const authType = this.contentGeneratorConfig?.authType;
436073
+ if (authType === AuthType2.USE_GEMINI || authType === AuthType2.USE_VERTEX_AI) {
436074
+ return true;
436075
+ }
436076
+ return this.experiments?.flags[ExperimentFlags.GEMINI_3_1_FLASH_LITE_LAUNCHED]?.boolValue ?? false;
436077
+ }
436017
436078
  async ensureExperimentsLoaded() {
436018
436079
  if (!this.experimentsPromise) {
436019
436080
  return;