Skip to content

Local Agent Provider Unnecessarily Requires API Key #1882

@arky

Description

@arky

When configuring the Dagu agent with a local provider (e.g., Ollama), the system incorrectly mandates an API key. Local providers typically do not require authentication keys for standard local endpoints like http://localhost:11434

The issue likely stems from a shared validation path in the provider factory that unconditionally checks for an API key before verifying if the provider is a local binary or endpoint.

Set a placeholder/dummy value in the API key field (e.g., "not-needed" or "local") to bypass the validation check until a fix is implemented

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