Skip to content

Bug in Setup Wizard: Hardcoded OpenAI Credential Validation Fails Even When Choosing Gemini #9

@ReaLMusti

Description

@ReaLMusti

Description

The repository documentation states that the script works with the FREE Gemini API. However, there is a critical bug in the setup wizard (npm run setup / setup.js) that prevents users from completing the installation without an OpenAI API key.

Steps to Reproduce

  1. Run npm run setup.
  2. Follow the steps and configure the bot to use content settings or alternative setups.
  3. Leave the OpenAI key configuration or pass through it since the goal is to use Gemini.
  4. At the final validation step, the wizard throws the following error and completely aborts the setup:
    ⚠️ Missing credentials for: openai
    ❌ Setup failed! Setup validation failed.

Expected Behavior

If the project supports Google Gemini as a budget-friendly/free alternative, the setup wizard's validation logic should not be hardcoded to strictly require OPENAI_API_KEY. It should dynamically validate credentials based on the provider selected, or at least allow the creation of the .env file without crashing the entire setup.

Environment

  • OS: macOS
  • Node.js version: Latest

Please update the validation logic in the setup script so that users who want to utilize the Gemini API can successfully complete the installation. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions