chore(core): refactor model resolution and cleanup fallback logic (#15228)

This commit is contained in:
Adam Weidman
2025-12-22 10:18:51 -05:00
committed by GitHub
parent 58fd00a3df
commit d6a2f1d670
9 changed files with 28 additions and 60 deletions

View File

@@ -27,7 +27,7 @@ import {
ToolCallEvent,
debugLogger,
ReadManyFilesTool,
getEffectiveModel,
resolveModel,
createWorkingStdio,
startupProfiler,
} from '@google/gemini-cli-core';
@@ -282,7 +282,7 @@ export class Session {
const functionCalls: FunctionCall[] = [];
try {
const model = getEffectiveModel(
const model = resolveModel(
this.config.getModel(),
this.config.getPreviewFeatures(),
);