mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-05 02:41:56 +00:00
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:
parent
31f3736d27
commit
fe42744ae8
1 changed files with 3 additions and 2 deletions
|
|
@ -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),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue