Skip to content

The agent that grows with you

chore: merge origin/main (resolve agent/auxiliary_client.py)

teknium1ffba66970a6a
diff --cc agent/auxiliary_client.py
index 1a3392f9d2f,8f7327a99b0..778f6ef79bd
--- a/agent/auxiliary_client.py
+++ b/agent/auxiliary_client.py
@@@ -6466,13 -6522,18 +6550,19 @@@ def _build_call_kwargs
max_tokens: Optional[int] = None, tools: Optional[list] = None, timeout: float = 30.0,
extra_body: Optional[dict] = None, reasoning_config: Optional[dict] = None,
base_url: Optional[str] = None, task: Optional[str] = None,
+ no_progress_timeout: Optional[float] = None,
) -> dict:
- """Build kwargs for .chat.completions.create() with model/provider adjustments."""
+ """Build kwargs for .chat.completions.create() with model/provider adjustments.
+ ``no_progress_timeout`` is a Codex-Responses-only extra (consumed by
+ ``_CodexCompletionsAdapter.create``'s ``**kwargs`` catch-all); callers must only pass it
+ when the resolved client is a ``CodexAuxiliaryClient`` — real SDK clients don't accept it."""
kwargs: Dict[str, Any] = {"model": model, "messages": messages, "timeout": timeout}
+ if no_progress_timeout is not None:
+ kwargs["no_progress_timeout"] = no_progress_timeout
+ effective_base = base_url or (_current_custom_base_url() if provider == "custom" else "")
# Per-model fixed/omitted temperature, then Opus 4.7+ sampling bans: it rejects any
# non-default temperature/top_p/top_k, so drop silently rather than 400 when the aux model flips.
- fixed_temperature = _fixed_temperature_for_model(model, base_url)
+ fixed_temperature = _fixed_temperature_for_model(model, effective_base, provider)
if fixed_temperature is OMIT_TEMPERATURE:
temperature = None # strip — let server choose
elif fixed_temperature is not None: