Skip to content

fix(config): gateway provider and per-task AI settings cannot be set from the CLI or environment #456

Closed

Description

@dan-petty

Problem

Routing a task to the LiteLLM gateway (provider: gateway, model devops-coder) is only possible by editing config.yaml:

  1. devops ai config --provider gateway is rejected: _PROVIDERS = ("ollama", "claude", "copilot", "openai") in src/devops_cli/commands/ai.py omits gateway, which LLMClient accepts.
  2. devops config set ai.tasks.chat.model devops-coder fails with "AIConfig" object has no field "tasks.chat.model": dotted_set only handles two-level keys.
  3. DEVOPS_CLI_AI_TASK_CHAT_{PROVIDER,MODEL,...} are mapped in config/env.py but _apply_env_overrides swallows the same ValueError, so the overrides are silently dropped.

Expected

  • devops ai config --provider accepts every provider LLMClient supports.
  • devops config set supports nested keys such as ai.tasks.<task>.<field>.
  • Env overrides either apply or fail loudly; never silently no-op.

Acceptance criteria

  • Each of the three paths sets a gateway chat task, with tests.

Activity

  1. added this to the v0.2.23 milestone on Sep 23, 2026
  2. added
    type/bug
    scope/config
    priority/p2-medium
    on Sep 23, 2026
  3. added a commit that references this issue on Sep 25, 2026
    d94d51c
  4. dan-petty commented on Sep 25, 2026

    @dan-petty
    OwnerAuthor

    Closed by #563, merged into release/v0.2.23.

    GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by devops gh issues close-merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p2-mediumscope/configtype/bug

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions