feat(agent): support full OpenRouter provider routing options#246
Closed
gamedevCloudy wants to merge 3 commits into
Closed
feat(agent): support full OpenRouter provider routing options#246gamedevCloudy wants to merge 3 commits into
gamedevCloudy wants to merge 3 commits into
Conversation
Old: - The agent only supported a subset of OpenRouter's provider routing options (`only`, `ignore`, `order`, `sort`) via individual explicit parameters. - There was no way for CLI users to persistently configure provider routing preferences via `config.yaml`. Changes: - Added `openrouter_providers` dictionary to `AIAgent` to natively support all OpenRouter provider kwargs (e.g., `allow_fallbacks`, `data_collection`, `quantized`, `require_parameters`). - Added an `openrouter.provider` block to `DEFAULT_CONFIG` in `hermes_cli/config.py` with bumped `_config_version` to 5 for auto-migration. - Updated `cli.py` to read the new config block and pass it to the agent. - Preserved legacy explicit parameters (`providers_allowed`, etc.) in `_build_api_kwargs` for backward compatibility with `batch_runner.py` and `delegate_tool.py`. Expected: - CLI users can now globally define advanced OpenRouter routing behaviors (like disabling fallbacks or opting out of data collection) directly in their `~/.hermes/config.yaml`. - Existing subagents and batch pipelines using explicit provider arguments continue to work identically without breaking.
domvox
pushed a commit
to domvox/hermes-agent
that referenced
this pull request
Mar 24, 2026
Add per-request ZDR enforcement via the OpenRouter provider preferences API.
When enabled, requests are restricted to only ZDR-compliant endpoints.
This complements the existing data_collection option with stricter privacy
control — while data_collection: deny blocks providers that train on data,
zdr: true blocks providers that retain data at all.
Configuration:
provider_routing:
zdr: true
Resolves NousResearch#238
Related to NousResearch#246 (closed/abandoned PR by gamedevCloudy)
|
Starting work on this issue. Branch: Investigation plan:
Implementation notes:
|
Implementation CompleteFixed in commit: Changes MadeThe Adjustments page now displays the full directive content that was previously only generated but not shown:
Technical Details
Before vs AfterBefore:
After:
|
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.
Implements: #238
Old:
Changes:
Expected:
Use of AI: