Fix compression threshold max limit from 4000 to 8000

- Updated hardcoded max limit in CompressThreshold input to match the 8000 token configuration
- Resolves issue where UI was limiting users to 4000 tokens despite backend supporting 8000
- Now allows users to set compression thresholds up to the full 8000 token limit

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
AC 2025-06-11 16:57:47 +08:00
parent f72aadc35d
commit bff6a5f226

View File

@ -218,7 +218,7 @@ export function ModelConfigList(props: {
aria-label={Locale.Settings.CompressThreshold.Title} aria-label={Locale.Settings.CompressThreshold.Title}
type="number" type="number"
min={500} min={500}
max={4000} max={8000}
value={props.modelConfig.compressMessageLengthThreshold} value={props.modelConfig.compressMessageLengthThreshold}
onChange={(e) => onChange={(e) =>
props.updateConfig( props.updateConfig(