mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-23 05:34:41 +00:00
test: cover Bedrock Mantle in the null safeguards case and match the vendor's non-list wording
The Rust null-safeguards regression test now also runs for bedrock_mantle, whose beta is keyed on the field being present. The scripted Anthropic peer answers a non-list safeguards value with the real API's "valid array" wording.
This commit is contained in:
parent
0906914990
commit
78e110d7eb
2 changed files with 2 additions and 2 deletions
|
|
@ -385,7 +385,7 @@ async fn safeguards_add_the_dangerous_tool_use_beta_only_where_the_beta_map_has_
|
|||
#[tokio::test]
|
||||
async fn null_safeguards_are_dropped_instead_of_sent_without_their_beta(
|
||||
call: MessagesCall,
|
||||
#[values("anthropic", "azure_ai", "deepseek", "minimax")] provider: &str,
|
||||
#[values("anthropic", "azure_ai", "bedrock_mantle", "deepseek", "minimax")] provider: &str,
|
||||
) {
|
||||
let upstream = upstream([message_response()]).await;
|
||||
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ DEEPSEEK_TARGET: Final = "/anthropic/v1/messages"
|
|||
SCRIPTED_TARGETS: Final = frozenset({ANTHROPIC_TARGET, DEEPSEEK_TARGET, VERTEX_TARGET, VERTEX_STREAM_TARGET})
|
||||
REPLY_TEXT: Final = "safeguards beta control"
|
||||
EXTRA_INPUTS_MESSAGE: Final = "safeguards: Extra inputs are not permitted"
|
||||
NOT_A_LIST_MESSAGE: Final = "safeguards: Input should be a valid list"
|
||||
NOT_A_LIST_MESSAGE: Final = "safeguards: Input should be a valid array"
|
||||
OVERLOADED_MESSAGE: Final = "Overloaded"
|
||||
SAFEGUARDS: Final[tuple[JsonValue, ...]] = (
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue