fix(auxiliary): fall back to OPENROUTER_API_KEY when pool entry is missing#10655
Open
LeonSGP43 wants to merge 1 commit into
Open
fix(auxiliary): fall back to OPENROUTER_API_KEY when pool entry is missing#10655LeonSGP43 wants to merge 1 commit into
LeonSGP43 wants to merge 1 commit into
Conversation
|
Verified this as working on my installation. |
|
Thank you |
|
where should i run the verification? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
OPENROUTER_API_KEYwhen an OpenRouter credential pool exists but cannot currently select a usable entryWhy
Issue #10149 reports
No auxiliary LLM provider configuredeven after settingOPENROUTER_API_KEYin~/.hermes/.env.That can happen when Hermes detects an OpenRouter credential pool, but the selected pool entry is unavailable or missing.
_try_openrouter()returned(None, None)immediately in that case, so the auto auxiliary path never reached the env-backed key.Verification
python3 -m pytest -o addopts= tests/agent/test_auxiliary_client.py -k "openrouter or compression"python3 -m pytest -o addopts= tests/run_agent/test_compression_feasibility.pyFixes #10149