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).
This commit is contained in:
teknium1 2026-03-11 22:49:24 -07:00
parent a7e5f19528
commit 65356003e3

View file

@ -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()