Default model
Supported models
Any model available through the OpenAI API:gpt-5.4(default)gpt-4ogpt-4o-mini- Any other model ID the API accepts
Authentication
Environment variable:Example usage
Tool-use support
Yes. OpenAI supports tool-use attacks. Agent exploitation, MCP exploitation, multi-agent, and protocol attacks all work with GPT models. The provider converts ai-blackteam’s tool format to OpenAI’s function calling format automatically.Notes
- Max output tokens per request: 4,096 (via
max_completion_tokens) - The provider uses the official
openaiPython SDK - System prompts are passed as a
systemrole message - User field: Every API call includes a
userfield set to"ai-blackteam-safety-eval"per OpenAI’s usage policy. This identifies the request as a safety evaluation, not a production user query. - Retry with exponential backoff is automatic on API failures (3 attempts)
- If no API key is provided via config or env var, the SDK falls back to its own default resolution (e.g.
OPENAI_API_KEYin the environment)