Skip to content

[BUG] Ollama local mode requires GROQ_API_KEY on Windows #260

@Valini-Singh

Description

@Valini-Singh

Description
Local Ollama (Llama 3.1 8B) setup incorrectly demands GROQ_API_KEY despite the selection of "local, no key needed" .

To Regenerate the error

  1. Windows PowerShell: irm https://openfang.sh/install.ps1 | iex
  2. openfang init
  3. Select: Ollama → Llama 3.1 (8B) → No smart routing → [3] Terminal chat
  4. Type: "Hello! Testing OpenFang on Windows"

Expected work
Local Ollama works without external API keys (as advertised).

Actual work
Error: "Missing API key: Set GROQ_API_KEY environment variable for pro"

Environment

  • OS: Windows 11
  • OpenFang: v0.1.4 (latest)
  • Shell: Windows PowerShell (Desktop edition)
  • PowerShell: 5.1+

Screenshots

Image

Additional context

  • Selected "local, no key needed" path
  • Ollama daemon running successsfully.
  • CONTRIBUTING.md promises local testing works

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions