Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions run_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -2204,6 +2204,10 @@ def __init__(
if not isinstance(_custom_providers, list):
_custom_providers = []

# Store for reuse by _check_compression_model_feasibility (auxiliary
# compression model context-length detection needs the same list).
self._custom_providers = _custom_providers

# Check custom_providers per-model context_length
if _config_context_length is None and _custom_providers:
try:
Expand Down Expand Up @@ -3246,6 +3250,7 @@ def _check_compression_model_feasibility(self) -> None:
# provider-specific paths (e.g. Bedrock static table, OpenRouter API)
# are invoked for the correct client, not inherited from the main model.
provider=(_aux_cfg_provider if _aux_cfg_provider and _aux_cfg_provider != "auto" else getattr(self, "provider", "")),
custom_providers=self._custom_providers,
)

# Hard floor: the auxiliary compression model must have at least
Expand Down
Loading