diff --git a/agent/moa_loop.py b/agent/moa_loop.py index 9be4f1c1081..3c442d57b7c 100644 --- a/agent/moa_loop.py +++ b/agent/moa_loop.py @@ -96,9 +96,10 @@ def _slot_runtime(slot: dict[str, str]) -> dict[str, Any]: resolved_provider = str(rt.get("provider") or provider).strip().lower() # call_llm treats an explicit base_url as a custom endpoint. That is # correct for ordinary OpenAI-compatible targets, but wrong for OAuth / - # adapter-backed providers whose provider branch adds auth headers and - # request-shape adapters. Keep those providers identified by name. - if resolved_provider in {"openai-codex", "xai-oauth"}: + # provider-backed targets whose provider branch adds auth refresh, + # request metadata, or request-shape adapters. Keep those providers + # identified by name. + if resolved_provider in {"nous", "openai-codex", "xai-oauth"}: return out # Pass the resolved endpoint through so call_llm builds the request for # the provider's actual API surface instead of auto-detecting. base_url