Skip to content

Add Abliteration.ai as an OpenAI-compatible prompt target #2306

Description

Summary

Abliteration.ai hosts less-restrictive LLMs behind an OpenAI-compatible chat completions API (base URL https://api.abliteration.ai/v1, API key via ABLIT_KEY). For red-teaming workflows it's useful to be able to register it as a prompt target out of the box.

Proposed approach

Following the existing convention for third-party OpenAI-compatible providers (Groq, OpenRouter, Ollama, Google Gemini), add a TargetConfig entry in pyrit/setup/initializers/targets.py using OpenAIChatTarget with:

  • ABLIT_ENDPOINT (e.g. https://api.abliteration.ai/v1)
  • ABLIT_KEY
  • ABLIT_MODEL

plus matching .env_example entries, unit test coverage in tests/unit/setup/test_targets_initializer.py, an optional integration test entry, and a provider tab in the Populating Secrets doc page.

No new target class needed since the API is fully OpenAI-compatible.

Happy to open a PR with this if it fits the project's plans.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions