fix(config): add request_timeout_seconds and stale_timeout_seconds to provider _KNOWN_KEYS#16908
Merged
Conversation
… provider _KNOWN_KEYS Both keys are documented in cli-config.yaml.example and read at runtime by hermes_cli/timeouts.py (get_provider_request_timeout and get_provider_stale_timeout), but the provider-entry validator in config.py flagged them as unknown, producing noisy warnings on every CLI invocation for users who followed the documented config. Fixes #16779
3 tasks
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.
Salvage of #16853 — cherry-picked onto current main.
Summary
Provider-entry validator no longer warns about
request_timeout_seconds/stale_timeout_seconds, which are documented incli-config.yaml.exampleand read at runtime byhermes_cli/timeouts.py.Changes
hermes_cli/config.py: add both keys to_KNOWN_KEYSfrozensettests/hermes_cli/test_provider_config_validation.py: positive test that the keys no longer trigger the unknown-key warningValidation
tests/hermes_cli/test_provider_config_validation.py— 17/17 pass_normalize_custom_provider_entry({..., request_timeout_seconds: 300, stale_timeout_seconds: 900})emits no warning; truly unknown keys still warn.Credit: @vominh1919 (authorship preserved via cherry-pick). Closes #16853.