dulax
11/26/2025, 1:43 AMPROMPTFOO_DISABLE_REMOTE_GENERATION=true and PROMPTFOO_SELF_HOSTED=1
Is using my own LLM for redteam generation just not supported at all?michaelmichaelmichael
11/29/2025, 4:34 AMpii, but there are a couple of things to sort out.
1: PROMPTFOO_SELF_HOSTED doesn't control remote generation
This env var is for template security in Docker deployments - it doesn't affect remote API calls. You can drop it.
2: The "remote calls" you're seeing are probably telemetry, not test generation
With PROMPTFOO_DISABLE_REMOTE_GENERATION=true, the PII plugin will use your local provider. But you'll still see calls to promptfoo servers for telemetry and health checks unless you also set:
bash
PROMPTFOO_DISABLE_TELEMETRY=true
To run locally with your own LLM
bash
PROMPTFOO_DISABLE_REMOTE_GENERATION=true \
PROMPTFOO_DISABLE_TELEMETRY=true \
promptfoo redteam generate -c your-config.yaml
Make sure your config specifies your provider for generation:
yaml
redteam:
provider: vertex:gemini-2.5-flash
plugins:
- pii
The pii plugins, along with contracts, hallucination, excessive-agency, imitation, overreliance, politics, prompt-extraction, rbac, shell-injection, sql-injection, and the dataset-based plugins (beavertails, cyberseceval, donotanswer, etc.) all support local generation.
Plugins marked with 🌐 in the docs (like harmful:*, bias:*, and several others) require remote generation because they use Promptfoo's specialized models.
If you want to generate all plugins with your own inference, contact us about an on-prem deployment.dulax
12/01/2025, 2:13 PM[logger.js:324] Extracting goal for 6 tests from pii:api-db...
[logger.js:324] Remote generation disabled, skipping goal extraction
Does that mean I'm getting a lesser quality run for the pii plugin than if I was using on-prem w/ my LLM or going direct to Promptfoo's servers?
I'm trying to make an assessment on if we really need enterprise or not - I want to use the redteaming module and I was aware of the 🌐 restrictions.dulax
12/02/2025, 8:06 PM--grader <myownllm> does that work and use my LLM?
(I expect for the domain specific ones it doesn't medical/finance/insurance/pharmacy)