File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -84,14 +84,16 @@ def check_shield_structure(context: Context) -> None:
8484
8585 assert found_shield is not None , "No shield found in response"
8686
87+ expected_model = context .default_model
88+
8789 # Validate structure and values
8890 assert found_shield ["type" ] == "shield" , "type should be 'shield'"
8991 assert (
9092 found_shield ["provider_id" ] == "llama-guard"
9193 ), "provider_id should be 'llama-guard'"
9294 assert (
93- found_shield ["provider_resource_id" ] == "llama-guard-shield"
94- ), "provider_resource_id should be 'llama-guard-shield '"
95+ found_shield ["provider_resource_id" ] == expected_model
96+ ), f "provider_resource_id should be '{ expected_model } '"
9597 assert (
9698 found_shield ["identifier" ] == "llama-guard-shield"
9799 ), "identifier should be 'llama-guard-shield'"
You can’t perform that action at this time.
0 commit comments