feat(core): Wire up chat code path for model configs. (#12850)

This commit is contained in:
joshualitt
2025-11-19 20:41:16 -08:00
committed by GitHub
parent 43d6dc3668
commit 257cd07a3a
19 changed files with 485 additions and 347 deletions

View File

@@ -5,6 +5,7 @@
*/
import type { ModelConfigServiceConfig } from '../services/modelConfigService.js';
import { DEFAULT_THINKING_MODE } from './models.js';
// The default model configs. We use `base` as the parent for all of our model
// configs, while `chat-base`, a child of `base`, is the parent of the models
@@ -25,7 +26,9 @@ export const DEFAULT_MODEL_CONFIGS: ModelConfigServiceConfig = {
generateContentConfig: {
thinkingConfig: {
includeThoughts: true,
thinkingBudget: -1,
// TODO(joshualitt): Introduce new bases for Gemini 3 models to use
// thinkingLevel instead.
thinkingBudget: DEFAULT_THINKING_MODE,
},
temperature: 1,
topP: 0.95,
@@ -38,6 +41,12 @@ export const DEFAULT_MODEL_CONFIGS: ModelConfigServiceConfig = {
// ensure these model configs can be used interactively.
// TODO(joshualitt): Introduce internal base configs for the various models,
// note: we will have to think carefully about names.
'gemini-3-pro-preview': {
extends: 'chat-base',
modelConfig: {
model: 'gemini-3-pro-preview',
},
},
'gemini-2.5-pro': {
extends: 'chat-base',
modelConfig: {