fix(compression): remove hardcoded gemini-3-flash-preview as default summary model (#2464)

fix(compression): remove hardcoded gemini-3-flash-preview as default summary model
This commit is contained in:
Teknium 2026-03-22 04:37:02 -07:00 committed by GitHub
commit a53db44d40
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

2
cli.py
View file

@ -180,7 +180,7 @@ def load_cli_config() -> Dict[str, Any]:
"compression": { "compression": {
"enabled": True, # Auto-compress when approaching context limit "enabled": True, # Auto-compress when approaching context limit
"threshold": 0.50, # Compress at 50% of model's context limit "threshold": 0.50, # Compress at 50% of model's context limit
"summary_model": "google/gemini-3-flash-preview", # Fast/cheap model for summaries "summary_model": "", # Model for summaries (empty = use main model)
}, },
"smart_model_routing": { "smart_model_routing": {
"enabled": False, "enabled": False,

View file

@ -159,7 +159,7 @@ DEFAULT_CONFIG = {
"compression": { "compression": {
"enabled": True, "enabled": True,
"threshold": 0.50, "threshold": 0.50,
"summary_model": "google/gemini-3-flash-preview", "summary_model": "", # empty = use main configured model
"summary_provider": "auto", "summary_provider": "auto",
"summary_base_url": None, "summary_base_url": None,
}, },
@ -1659,7 +1659,8 @@ def show_config():
print(f" Enabled: {'yes' if enabled else 'no'}") print(f" Enabled: {'yes' if enabled else 'no'}")
if enabled: if enabled:
print(f" Threshold: {compression.get('threshold', 0.50) * 100:.0f}%") print(f" Threshold: {compression.get('threshold', 0.50) * 100:.0f}%")
print(f" Model: {compression.get('summary_model', 'google/gemini-3-flash-preview')}") _sm = compression.get('summary_model', '') or '(main model)'
print(f" Model: {_sm}")
comp_provider = compression.get('summary_provider', 'auto') comp_provider = compression.get('summary_provider', 'auto')
if comp_provider != 'auto': if comp_provider != 'auto':
print(f" Provider: {comp_provider}") print(f" Provider: {comp_provider}")