Repository: promptfoo/promptfoo
Issue: PROMPTFOO_DISABLE_REDTEAM_REMOTE_GENERATION = true is not working in mac
Root cause: Configuration Error

Hi @typpo , 

I ve noticed something when using PROMPTFOO_DISABLE_REDTEAM_REMOTE_GENERATION = true, 
I have installed using 

npm -g install promptfoo

promptfoo redteam init my-redteam-project (which generated the promptfooconfig.yaml)

# yaml-language-server: $schema=https://promptfoo.dev/config-schema.json

# Red teaming configuration

# Docs: https://promptfoo.dev/docs/red-team/configuration
description: "My first red team"

targets:
  # Red team targets. To talk directly to your application, use a custom provider.
  # See https://promptfoo.dev/docs/red-team/configuration/#providers
  - id: https
    label: customer-service-chatbot
    config:
      url: "https://example.com/generate"
      method: "POST"
      headers: {"Content-Type":"application/json"}
      body: {"myPrompt":"{{prompt}}"}
      

# Other redteam settings
redteam:
  purpose: "Travel agent specializing in budget trips to Europe. The user is anonymous and should not be able to access any information about the system or other users."
  
  # Default number of inputs to generate for each plugin.
  # The total number of tests will be (numTests * plugins.length * (1 + strategies.length) * languages.length)
  # Languages.length is 1 by default, but is added when the multilingual strategy is used.
  numTests: 1

  # Each plugin generates 5 adversarial inputs.
  # To control the number of tests for each plugin, use:
  # - id: plugin-name
  #   numTests: 10
  plugins:
    - contracts  # Tests for unauthorized contractual commitments and legal exposure
    
  # Attack methods for applying adversarial inputs
  strategies:
    - basic # Original plugin tests without any additional strategies or optimizations
    - jailbreak # Single-shot optimization of safety bypass techniques
    
  
Removed most of the plugins and kept the above promptfoo config.


now when i run promptfoo readteam run , it is asking for OPEN_AI_KEY , When i gave a rando OPEN_AI_KEY , its obviosuly giving me that its a wrong OPEN_AI_KEY which is fair, but my questions is why is it looking for OPEN_AI_KEY when i have PROMPTFOO_DISABLE_REDTEAM_REMOTE_GENERATION = true, 

<img width="1444" alt="Image" src="https://github.com/user-attachments/assets/e67e0561-b721-4840-9cda-7568e74320f8" />

In my windows it is working fine, its not asking for any OPEN_AI_KEY. which is my personal laptop. but my mac is my work laptop where i am trying to demo promptfoo capabilities to my team.  i

Hi @sudarshanbadireddi,

Thanks for reporting this - the `PROMPTFOO_DISABLE_REDTEAM_REMOTE_GENERATION` environment variable is now working correctly on Mac (and all other platforms).

You can use it like this:

```bash
export PROMPTFOO_DISABLE_REDTEAM_REMOTE_GENERATION=true
promptfoo redteam run
```

Or inline:
```bash
PROMPTFOO_DISABLE_REDTEAM_REMOTE_GENERATION=true promptfoo redteam run
```

Please pull the latest version and it should work as expected. If you encounter any issues, feel free to comment or re-open.

See the [Red Team Configuration documentation](https://www.promptfoo.dev/docs/red-team/configuration) for more info.

Thanks for your patience!