Update auto compression message. (#12605)

This commit is contained in:
Tommaso Sciortino
2025-11-05 11:08:57 -08:00
committed by GitHub
parent 400da30a8d
commit ca6cfaaf4e
+2 -2
View File
@@ -662,7 +662,7 @@ export const useGeminiStream = (
{ {
type: 'info', type: 'info',
text: text:
`IMPORTANT: This conversation approached the input token limit for ${config.getModel()}. ` + `IMPORTANT: This conversation exceeded the compress threshold. ` +
`A compressed context will be sent for future messages (compressed from: ` + `A compressed context will be sent for future messages (compressed from: ` +
`${eventValue?.originalTokenCount ?? 'unknown'} to ` + `${eventValue?.originalTokenCount ?? 'unknown'} to ` +
`${eventValue?.newTokenCount ?? 'unknown'} tokens).`, `${eventValue?.newTokenCount ?? 'unknown'} tokens).`,
@@ -670,7 +670,7 @@ export const useGeminiStream = (
Date.now(), Date.now(),
); );
}, },
[addItem, config, pendingHistoryItemRef, setPendingHistoryItem], [addItem, pendingHistoryItemRef, setPendingHistoryItem],
); );
const handleMaxSessionTurnsEvent = useCallback( const handleMaxSessionTurnsEvent = useCallback(