Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pyrit_conf_example
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ memory_db_type: sqlite
# - scorer
initializers:
- name: simple
- name: scorer
- name: target
- name: scorers
- name: targets
args:
tags:
- default
Expand Down
2 changes: 1 addition & 1 deletion doc/setup/pyrit_conf.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ Because initializers run last, they can modify anything set up in earlier steps
The CLI and shell automatically load `~/.pyrit/.pyrit_conf`. You can also point to a different config file:

```bash
pyrit scan run --config-file ./my_project_config.yaml --database InMemory
pyrit_scan run --config-file ./my_project_config.yaml --database InMemory
```

Individual CLI arguments (like `--database`) override values from the config file.
Expand Down
2 changes: 1 addition & 1 deletion pyrit/cli/pyrit_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def parse_args(args: Optional[list[str]] = None) -> Namespace:
pyrit_scan garak.encoding --initialization-scripts ./my_config.py
# Run specific strategies or options
pyrit scan foundry --strategies base64 rot13 --initializers openai_objective_target
pyrit_scan foundry --strategies base64 rot13 --initializers openai_objective_target
pyrit_scan foundry --initializers openai_objective_target --max-concurrency 10 --max-retries 3
pyrit_scan garak.encoding --initializers openai_objective_target --memory-labels '{"run_id":"test123"}'
""",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def required_env_vars(self) -> list[str]:
"""Get list of required environment variables."""
return [
"DEFAULT_OPENAI_FRONTEND_ENDPOINT",
"DEFAULT_OPENAI_FRONTEND_KEY",
]

async def initialize_async(self) -> None:
Expand Down
Loading