Skip to content

fix: use credential_pool for custom endpoint model listing probes#22810

Closed
v1b3coder wants to merge 1 commit into
NousResearch:mainfrom
v1b3coder:fix/custom-provider-credential-pool
Closed

fix: use credential_pool for custom endpoint model listing probes#22810
v1b3coder wants to merge 1 commit into
NousResearch:mainfrom
v1b3coder:fix/custom-provider-credential-pool

Conversation

@v1b3coder

Copy link
Copy Markdown
Contributor

Summary

Custom endpoint model validation (/model command) was failing because:

  1. _resolve_named_custom_runtime skipped credential_pool for bare provider: custom with explicit_base_url
  2. model_switch.py ignored the resolved api_key for provider=custom due to an if provider != custom guard

Both are now fixed.

Fixes

Closes #18681, #16254, #12919

- _resolve_named_custom_runtime now checks credential_pool for bare
  provider: custom with explicit_base_url (was only checking env vars)
- model_switch.py removes 'if provider != custom' guard — resolved
  api_key is now always used, including for custom providers

Fixes: NousResearch#18681, NousResearch#16254, NousResearch#12919
@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/cli CLI entry point, hermes_cli/, setup wizard labels May 9, 2026
@teknium1

Copy link
Copy Markdown
Contributor

Merged via salvage PR #22842. salvage applied your patch and re-authored to your noreply email since the original commit used 'agent@hermes.local' as a placeholder. Your authorship is now recorded in git log on main. Thanks for the contribution!

@teknium1 teknium1 closed this May 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(gateway): /model command fails on custom providers — api_key not read from config

3 participants