mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-14 13:53:02 -07:00
fix(context): Change snapshotter model config. (#26745)
This commit is contained in:
@@ -700,6 +700,19 @@ their corresponding top-level category object in your `settings.json` file.
|
|||||||
"extends": "gemini-3-flash-base",
|
"extends": "gemini-3-flash-base",
|
||||||
"modelConfig": {}
|
"modelConfig": {}
|
||||||
},
|
},
|
||||||
|
"context-snapshotter": {
|
||||||
|
"extends": "gemini-3-flash-base",
|
||||||
|
"modelConfig": {
|
||||||
|
"generateContentConfig": {
|
||||||
|
"thinkingConfig": {
|
||||||
|
"thinkingLevel": "HIGH"
|
||||||
|
},
|
||||||
|
"temperature": 1,
|
||||||
|
"topP": 0.95,
|
||||||
|
"topK": 64
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"chat-compression-3-pro": {
|
"chat-compression-3-pro": {
|
||||||
"modelConfig": {
|
"modelConfig": {
|
||||||
"model": "gemini-3-pro-preview"
|
"model": "gemini-3-pro-preview"
|
||||||
|
|||||||
@@ -221,6 +221,19 @@ export const DEFAULT_MODEL_CONFIGS: ModelConfigServiceConfig = {
|
|||||||
extends: 'gemini-3-flash-base',
|
extends: 'gemini-3-flash-base',
|
||||||
modelConfig: {},
|
modelConfig: {},
|
||||||
},
|
},
|
||||||
|
'context-snapshotter': {
|
||||||
|
extends: 'gemini-3-flash-base',
|
||||||
|
modelConfig: {
|
||||||
|
generateContentConfig: {
|
||||||
|
thinkingConfig: {
|
||||||
|
thinkingLevel: ThinkingLevel.HIGH,
|
||||||
|
},
|
||||||
|
temperature: 1,
|
||||||
|
topP: 0.95,
|
||||||
|
topK: 64,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
'chat-compression-3-pro': {
|
'chat-compression-3-pro': {
|
||||||
modelConfig: {
|
modelConfig: {
|
||||||
model: 'gemini-3-pro-preview',
|
model: 'gemini-3-pro-preview',
|
||||||
|
|||||||
@@ -207,7 +207,7 @@ ${formatNodesForLlm(nodes)}`;
|
|||||||
try {
|
try {
|
||||||
const result = await this.env.llmClient.generateJson({
|
const result = await this.env.llmClient.generateJson({
|
||||||
role: LlmRole.UTILITY_STATE_SNAPSHOT_PROCESSOR,
|
role: LlmRole.UTILITY_STATE_SNAPSHOT_PROCESSOR,
|
||||||
modelConfigKey: { model: 'gemini-3-flash-base' },
|
modelConfigKey: { model: 'context-snapshotter' },
|
||||||
contents: [{ role: 'user', parts: [{ text: userPromptText }] }],
|
contents: [{ role: 'user', parts: [{ text: userPromptText }] }],
|
||||||
systemInstruction: { role: 'system', parts: [{ text: systemPrompt }] },
|
systemInstruction: { role: 'system', parts: [{ text: systemPrompt }] },
|
||||||
schema: patchSchema,
|
schema: patchSchema,
|
||||||
|
|||||||
@@ -253,6 +253,17 @@
|
|||||||
"topP": 1
|
"topP": 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"context-snapshotter": {
|
||||||
|
"model": "gemini-3-flash-preview",
|
||||||
|
"generateContentConfig": {
|
||||||
|
"temperature": 1,
|
||||||
|
"topP": 0.95,
|
||||||
|
"thinkingConfig": {
|
||||||
|
"thinkingLevel": "HIGH"
|
||||||
|
},
|
||||||
|
"topK": 64
|
||||||
|
}
|
||||||
|
},
|
||||||
"chat-compression-3-pro": {
|
"chat-compression-3-pro": {
|
||||||
"model": "gemini-3-pro-preview",
|
"model": "gemini-3-pro-preview",
|
||||||
"generateContentConfig": {}
|
"generateContentConfig": {}
|
||||||
|
|||||||
@@ -253,6 +253,17 @@
|
|||||||
"topP": 1
|
"topP": 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"context-snapshotter": {
|
||||||
|
"model": "gemini-3-flash-preview",
|
||||||
|
"generateContentConfig": {
|
||||||
|
"temperature": 1,
|
||||||
|
"topP": 0.95,
|
||||||
|
"thinkingConfig": {
|
||||||
|
"thinkingLevel": "HIGH"
|
||||||
|
},
|
||||||
|
"topK": 64
|
||||||
|
}
|
||||||
|
},
|
||||||
"chat-compression-3-pro": {
|
"chat-compression-3-pro": {
|
||||||
"model": "gemini-3-pro-preview",
|
"model": "gemini-3-pro-preview",
|
||||||
"generateContentConfig": {}
|
"generateContentConfig": {}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user