Skip to content

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

Open
abliteration-ai wants to merge 1 commit into
microsoft:mainfrom
abliteration-ai:abliteration-target
Open

FEAT Add Abliteration.ai as an OpenAI-compatible prompt target#2307
abliteration-ai wants to merge 1 commit into
microsoft:mainfrom
abliteration-ai:abliteration-target

Conversation

@abliteration-ai

Copy link
Copy Markdown

Description

Adds Abliteration.ai as a supported OpenAI-compatible prompt target, following the existing convention for third-party OpenAI-compatible providers (Groq, OpenRouter, Ollama, Google Gemini).

Related issue: #2306

Abliteration.ai hosts less-restrictive LLMs behind an OpenAI-compatible chat completions API at https://api.abliteration.ai/v1. Since it is fully OpenAI-compatible, no new target class is needed — this adds a TargetConfig entry in TargetInitializer that registers an OpenAIChatTarget from ABLIT_ENDPOINT / ABLIT_KEY / ABLIT_MODEL environment variables.

Changes:

  • pyrit/setup/initializers/targets.py: new abliteration TargetConfig (OpenAIChatTarget) and docstring entry
  • .env_example: ABLIT_ENDPOINT, ABLIT_KEY, ABLIT_MODEL entries
  • doc/getting_started/populating_secrets.md: Abliteration.ai tab alongside the other provider setup examples
  • tests/unit/setup/test_targets_initializer.py: registration test and TARGET_CONFIGS coverage assertion
  • tests/integration/targets/test_targets_and_secrets.py: optional (run_only_if_all_tests) connectivity test entry

Tests and Documentation

  • pytest tests/unit/setup: 331 passed
  • pre-commit run --all-files: all hooks pass (ruff format/check, ty, nbstripout, etc.)
  • JupyText not run: no notebook code samples were added or changed; the doc change is a Markdown-only addition to the Populating Secrets page.

@abliteration-ai

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant