Skip to content

Add KAI_AI_MODEL and KAI_AI_TIMEOUT environment variables #18

@jschatz1

Description

@jschatz1

Problem

The AI model is hardcoded to `claude-sonnet-4-20250514` (`kai-cli/internal/ai/client.go:33`) and the timeout is hardcoded to 60 seconds (line 35). Contributors and users cannot test against different models or adjust timeouts without code changes.

Expected Behavior

  • `KAI_AI_MODEL` env var to override the default model
  • `KAI_AI_TIMEOUT` env var to override the default timeout (in seconds)

Files to Modify

  • `kai-cli/internal/ai/client.go` — read from env vars with current values as defaults

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions