Skip to content

Make the Anthropic model name configurable instead of hardcoded #14

Description

@chenhaot

In agent.py, the model identifier is hardcoded as claude-sonnet-4-5-20250929 (~line 38). When this model version is deprecated or a newer model is available, the code must be edited and redeployed. This also prevents users from choosing a cheaper or more capable model.

Suggested fix: Add a model field to the Config dataclass (with a sensible default like claude-sonnet-4-5-20250929), and pass it through to agent._call(). This keeps the default behavior unchanged while allowing configuration via the setup wizard or environment variable.


Identified by minbot code review

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