feat: add support for gemma-4-26b-a4b-it and hardcode calls

This commit is contained in:
Akhilesh Kumar
2026-04-19 18:40:30 +00:00
parent 277f0bb361
commit f5cf3cbe5a
2 changed files with 3 additions and 15 deletions
+2
View File
@@ -59,6 +59,7 @@ export const PREVIEW_GEMINI_3_1_FLASH_LITE_MODEL =
export const DEFAULT_GEMINI_MODEL = 'gemini-2.5-pro';
export const DEFAULT_GEMINI_FLASH_MODEL = 'gemini-2.5-flash';
export const DEFAULT_GEMINI_FLASH_LITE_MODEL = 'gemini-2.5-flash-lite';
export const GEMMA_4_MODEL = 'gemma-4-26b-a4b-it';
export const VALID_GEMINI_MODELS = new Set([
PREVIEW_GEMINI_MODEL,
@@ -69,6 +70,7 @@ export const VALID_GEMINI_MODELS = new Set([
DEFAULT_GEMINI_MODEL,
DEFAULT_GEMINI_FLASH_MODEL,
DEFAULT_GEMINI_FLASH_LITE_MODEL,
GEMMA_4_MODEL,
]);
export const PREVIEW_GEMINI_MODEL_AUTO = 'auto-gemini-3';
+1 -15
View File
@@ -73,7 +73,6 @@ import {
getDisplayString,
resolveModel,
isGemini2Model,
PREVIEW_GEMINI_FLASH_MODEL,
} from '../config/models.js';
import { partToString } from '../utils/partUtils.js';
import { coreEvents, CoreEvent } from '../utils/events.js';
@@ -681,26 +680,13 @@ export class GeminiClient {
);
}
let modelToUse: string;
// Determine Model (Stickiness vs. Routing)
if (this.currentSequenceModel) {
modelToUse = this.currentSequenceModel;
} else {
modelToUse = PREVIEW_GEMINI_FLASH_MODEL;
}
const modelToUse = 'gemma-4-26b-a4b-it';
// availability logic
const modelConfigKey: ModelConfigKey = {
model: modelToUse,
isChatModel: true,
};
const { model: finalModel } = applyModelSelection(
this.config,
modelConfigKey,
{ consumeAttempt: false },
);
modelToUse = finalModel;
if (!signal.aborted && !this.currentSequenceModel) {
yield { type: GeminiEventType.ModelInfo, value: modelToUse };