Merge pull request #1713 from NousResearch/fix/auxiliary-is-nous-reset
fix(aux): auxiliary_is_nous flag never resets — leaks Nous tags to other providers
This commit is contained in:
commit
6ddb9ee3e3
1 changed files with 2 additions and 0 deletions
|
|
@ -706,6 +706,8 @@ def _resolve_forced_provider(forced: str) -> Tuple[Optional[OpenAI], Optional[st
|
||||||
|
|
||||||
def _resolve_auto() -> Tuple[Optional[OpenAI], Optional[str]]:
|
def _resolve_auto() -> Tuple[Optional[OpenAI], Optional[str]]:
|
||||||
"""Full auto-detection chain: OpenRouter → Nous → custom → Codex → API-key → None."""
|
"""Full auto-detection chain: OpenRouter → Nous → custom → Codex → API-key → None."""
|
||||||
|
global auxiliary_is_nous
|
||||||
|
auxiliary_is_nous = False # Reset — _try_nous() will set True if it wins
|
||||||
for try_fn in (_try_openrouter, _try_nous, _try_custom_endpoint,
|
for try_fn in (_try_openrouter, _try_nous, _try_custom_endpoint,
|
||||||
_try_codex, _resolve_api_key_provider):
|
_try_codex, _resolve_api_key_provider):
|
||||||
client, model = try_fn()
|
client, model = try_fn()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue