examples/redteam-deepseek/README.md
This example demonstrates how to run both an eval from a csv file and an automated red team against DeepSeek models.
You can run this example with:
npx promptfoo@latest init --example redteam-deepseek
cd redteam-deepseek
This example requires the following environment variables:
OPENROUTER_API_KEY - Your OpenRouter API key for accessing DeepSeek R1 0528You can set this in a .env file or directly in your environment.
Set up your OPENROUTER_API_KEY environment variable
Run the standard evaluation:
promptfoo eval
View the results:
promptfoo view
Set up your OPENROUTER_API_KEY environment variable
Edit redteamconfig.yaml if needed for your test parameters
Run the red team evaluation:
promptfoo redteam run -c redteamconfig.yaml
This example includes:
promptfooconfig.yaml - Configuration for standard evaluation testsredteamconfig.yaml - Configuration for red team evaluation teststests.csv - Test cases for evaluating model responsesFor more information about this evaluation and our analysis of DeepSeek models' content moderation, read our detailed DeepSeek Censorship Blog Post.