fix(core): Compression was broken when routing enabled (#9183)

This commit is contained in:
Abhi
2025-09-23 00:44:07 -04:00
committed by GitHub
parent 4d080ba975
commit 7447a84041
2 changed files with 1 additions and 51 deletions
+1 -2
View File
@@ -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) {