feat(core): Integrate remote experiments configuration (#12539)

This commit is contained in:
Shreya Keshive
2025-11-04 15:09:53 -08:00
committed by GitHub
parent 53c7646ed7
commit da3da19844
11 changed files with 173 additions and 43 deletions
@@ -106,7 +106,8 @@ export class ChatCompressionService {
// Don't compress if not forced and we are under the limit.
if (!force) {
const threshold =
config.getCompressionThreshold() ?? DEFAULT_COMPRESSION_TOKEN_THRESHOLD;
(await config.getCompressionThreshold()) ??
DEFAULT_COMPRESSION_TOKEN_THRESHOLD;
if (originalTokenCount < threshold * tokenLimit(model)) {
return {
newHistory: null,