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:
commit
a53db44d40
2 changed files with 4 additions and 3 deletions
2
cli.py
2
cli.py
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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}")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue