address greptile review feedback (greploop iteration 5)

- bedrock: fix misleading warning message in _normalize_checks; partial matches
  stay in InvokeGuardrailChecks mode, they do not fall back to ApplyGuardrail

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Sameer Kankute 2026-06-29 11:51:53 +05:30
parent 31f3736d27
commit fe42744ae8
No known key found for this signature in database

View file

@ -265,8 +265,9 @@ class BedrockGuardrail(CustomGuardrail, BaseAWSLLM):
unknown_keys = set(checks.keys()) - _BEDROCK_CHECKS_KNOWN_KEYS
if unknown_keys:
verbose_proxy_logger.warning(
"BedrockGuardrail: unrecognized check key(s) %s will be ignored. "
"Known keys: %s. Guardrail will fall back to ApplyGuardrail mode.",
"BedrockGuardrail: unrecognized check key(s) %s will be ignored; "
"recognized keys will still be used for InvokeGuardrailChecks. "
"Known keys: %s.",
sorted(unknown_keys),
sorted(_BEDROCK_CHECKS_KNOWN_KEYS),
)