mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-14 22:02:59 -07:00
feat: add support for gemma-4-26b-a4b-it and hardcode calls
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user