From 65356003e3da075337d4e4407353f6b57d84d150 Mon Sep 17 00:00:00 2001 From: teknium1 Date: Wed, 11 Mar 2026 22:49:24 -0700 Subject: [PATCH] revert: keep provider preferences for all providers (Nous will proxy) Nous Portal backend will become a transparent proxy for OpenRouter- specific parameters (provider preferences, etc.), so keep sending them to all providers. The reasoning disabled fix is kept (that's a real constraint of the Nous endpoint). --- run_agent.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/run_agent.py b/run_agent.py index bb66351b4..af1b31c03 100644 --- a/run_agent.py +++ b/run_agent.py @@ -2395,7 +2395,9 @@ class AIAgent: _is_openrouter = "openrouter" in self.base_url.lower() # Provider preferences (only, ignore, order, sort) are OpenRouter- - # specific — don't send them to other providers (Nous, Codex, etc.) + # specific. Only send to OpenRouter-compatible endpoints. + # TODO: Nous Portal will add transparent proxy support — re-enable + # for _is_nous when their backend is updated. if provider_preferences and _is_openrouter: extra_body["provider"] = provider_preferences _is_nous = "nousresearch" in self.base_url.lower()