mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-16 23:03:49 +00:00
working bedrock tests
This commit is contained in:
parent
d960f9b60f
commit
e0f227f23c
4 changed files with 64 additions and 15 deletions
|
@ -57,7 +57,7 @@ DEFAULT_PROVIDER_COMBINATIONS = [
|
|||
|
||||
|
||||
def pytest_configure(config):
|
||||
for mark in ["meta_reference", "ollama", "together", "remote"]:
|
||||
for mark in ["meta_reference", "ollama", "together", "remote", "bedrock"]:
|
||||
config.addinivalue_line(
|
||||
"markers",
|
||||
f"{mark}: marks tests as {mark} specific",
|
||||
|
@ -71,6 +71,18 @@ def pytest_addoption(parser):
|
|||
default=None,
|
||||
help="Specify the safety model to use for testing",
|
||||
)
|
||||
parser.addoption(
|
||||
"--bedrock-guardrail-id",
|
||||
action="store",
|
||||
default=None,
|
||||
help="Specify the guard rail ID to use for testing bedrock",
|
||||
)
|
||||
parser.addoption(
|
||||
"--bedrock-guardrail-version",
|
||||
action="store",
|
||||
default=None,
|
||||
help="Specify the guard rail version to use for testing bedrock",
|
||||
)
|
||||
|
||||
|
||||
SAFETY_MODEL_PARAMS = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue