Skip to content

fix(auxiliary): retry named provider after custom endpoint fails for MiniMax - #22971

Closed
crayfish-ai wants to merge 2 commits into
NousResearch:mainfrom
crayfish-ai:fix/auxiliary-custom-minimax-retry
Closed

fix(auxiliary): retry named provider after custom endpoint fails for MiniMax#22971
crayfish-ai wants to merge 2 commits into
NousResearch:mainfrom
crayfish-ai:fix/auxiliary-custom-minimax-retry

Conversation

@crayfish-ai

Copy link
Copy Markdown
Contributor

Problem

When config.yaml has (or pointing to a custom endpoint) as the main provider, auxiliary auto-detect in Step 1 calls , which tries . If that is empty, Step 1 fails — even when the user's actual named provider (e.g. 'minimax') is configured with .

This causes context compression, summarization, and memory flush to silently fail with:

Set OPENROUTER_API_KEY or configure a local model in config.yaml.

Fix

  1. Retry named provider after custom endpoint fails: In Step 1, after the branch returns None, retry using the actual named (e.g. 'minimax'). The named provider has its own key () even if the custom endpoint did not respond.

  2. Fix misleading warning message: The warning incorrectly suggests or local model, when the correct fix is .

Testing

  • : 138 tests passed
  • : 9 tests passed

@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint provider/minimax MiniMax (Anthropic transport) labels May 10, 2026
Step 1 of _resolve_auto() routes 'custom' + base_url to resolve_provider_client
with provider='custom', which uses OPENAI_API_KEY and fails when that is empty.
When the user's actual main provider is a named provider (e.g. 'minimax'),
retry with the named provider after the custom endpoint fails — it may have
its own key (e.g. MINIMAX_API_KEY) even though the custom endpoint did not
respond.

Also fix the warning message that incorrectly suggested setting OPENROUTER_API_KEY
or a local model, rather than the correct fix: auxiliary.<task>.provider: main.
@crayfish-ai
crayfish-ai force-pushed the fix/auxiliary-custom-minimax-retry branch from 9142759 to 3e7d9d6 Compare May 11, 2026 08:09
@crayfish-ai
crayfish-ai deleted the fix/auxiliary-custom-minimax-retry branch May 11, 2026 11:19
@crayfish-ai

Copy link
Copy Markdown
Contributor Author

Status Note (2026-05-13)

This PR was closed on 2026-05-11 at 11:19 UTC but shows merged: false — the two commits were never actually merged into any upstream branch:

  • — fix(auxiliary): retry named provider after custom endpoint fails
  • — bundle fix: windows SIGKILL footgun + e2e destructive-slash confirm mock

Verification:

Both fixes are still needed by PR #22944 (context compression). If the maintainers intend to close this PR without merging, the fixes should be cherry-picked onto the server-mainline branch instead.

@crayfish-ai

Copy link
Copy Markdown
Contributor Author

Status Note (2026-05-13)

This PR was closed on 2026-05-11 at 11:19 UTC but shows merged: false — the two commits were never actually merged into any upstream branch:

  • — fix(auxiliary): retry named provider after custom endpoint fails
  • — bundle fix: windows SIGKILL footgun + e2e destructive-slash confirm mock

Verification:

Both fixes are still needed by PR #22944 (context compression). If the maintainers intend to close this PR without merging, the fixes should be cherry-picked onto the server-mainline branch instead.

@crayfish-ai

Copy link
Copy Markdown
Contributor Author

Status Note (2026-05-13)

This PR was closed on 2026-05-11 at 11:19 UTC but shows merged: false — the two commits were never actually merged into any upstream branch:

  • 3e7d9d601aeb3d80a60db3d992ff24b5ed9bde80 — fix(auxiliary): retry named provider after custom endpoint fails
  • 91c9b745be333fe5f30d33e048f35f60b404a8c5 — bundle fix: windows SIGKILL footgun + e2e destructive-slash confirm mock

Verification:

Both fixes are still needed by PR #22944 (context compression). If the maintainers intend to close this PR without merging, the fixes should be cherry-picked onto the server-mainline branch instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint P3 Low — cosmetic, nice to have provider/minimax MiniMax (Anthropic transport) type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants