Skip to content

Bug: Custom OPENAI_BASE_URL not respected #957

@rahul-edmission

Description

@rahul-edmission

Using a custom OPENAI_BASE_URL + OPENAI_API_KEY (e.g., OpenRouter/Ollama) still fails with:

No OpenAI API key found.
Repro
export OPENAI_API_KEY=dummy
export OPENAI_BASE_URL=https://openrouter.ai/api/v1

Run CLI → error persists.

Expected
Accept custom base URL
Skip strict OpenAI key validation
Route requests to provided endpoint
Actual
Hardcoded OpenAI validation
Fails before using OPENAI_BASE_URL
Suggestion
Respect OPENAI_BASE_URL first
Allow non-OpenAI keys when custom base is set
Make LLM provider pluggable

Thanks!

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