mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-22 15:51:18 -07:00
fix(core): Compression was broken when routing enabled (#9183)
This commit is contained in:
@@ -758,8 +758,7 @@ export class GeminiClient {
|
||||
|
||||
const { totalTokens: newTokenCount } =
|
||||
await this.getContentGeneratorOrFail().countTokens({
|
||||
// model might change after calling `sendMessage`, so we get the newest value from config
|
||||
model: this.config.getModel(),
|
||||
model,
|
||||
contents: chat.getHistory(),
|
||||
});
|
||||
if (newTokenCount === undefined) {
|
||||
|
||||
Reference in New Issue
Block a user