From 9229d0db177577e1682aaff3d6d85b711819a1bf Mon Sep 17 00:00:00 2001 From: Gille <4317663+helix4u@users.noreply.github.com> Date: Sat, 27 Jun 2026 23:13:09 -0600 Subject: [PATCH] fix(moa): preserve Nous provider identity for references --- agent/moa_loop.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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