Skip to content

fix: default model claude-sonnet-4-5 retires on Nov 30, 2026 #275

Closed

Description

@prasadrandika

Bug Description

Kit's built-in default model is anthropic/claude-sonnet-4-5-20250929. Anthropic retires Claude Sonnet 4.5 (claude-sonnet-4-5-20250929, and the undated claude-sonnet-4-5) on the Claude API on November 30, 2026. The recommended replacement is claude-sonnet-5-5. Source: Anthropic model deprecations.

After that date, a user who runs kit without --model and without model: in the config gets an API error on the first request, because requests to a retired model fail. Kit's own model catalog already marks Sonnet 4.5 as deprecated.

The default is set in these places:

  • cmd/root.go: default of the --model / -m flag
  • pkg/kit/config.go: SDK default (setSDKDefaults)
  • cmd/github.go: defaultGitHubModel (GitHub workflow setup)
  • cmd/auth.go: the model that kit auth login anthropic --set-default writes
  • internal/config/config.go: commented model: line in the generated sample config

Steps to Reproduce

  1. Log in to Anthropic (kit auth login anthropic) or set ANTHROPIC_API_KEY.
  2. Do not set --model or model: in the config.
  3. Run kit "hello" on or after November 30, 2026.
  4. The request to claude-sonnet-4-5-20250929 fails.

Affected Component

config / default model (CLI, SDK, GitHub workflow setup, auth)

Kit Version

master

Additional Context

Proposed fix: change the default to anthropic/claude-sonnet-5-5.

claude-sonnet-5-5 rejects non-default temperature, top_p and top_k with HTTP 400. Its catalog entry has temperature: false, but today validateModelConfig clears only temperature. So an explicit --top-p / --top-k (or a top_p that the temperature/top_p conflict check keeps) still reaches the model. The fix must also handle these parameters, without silently dropping top_p / top_k that a user set on a custom model whose metadata does not mark them unsupported.

A first PR (#273) was closed automatically because it had no linked issue.

Checklist

  • I've searched existing issues and this hasn't been reported yet
  • I've tested with the latest version of Kit

Activity

  1. mark-iii-labs-huly commented on Nov 23, 2026

    @mark-iii-labs-huly

    Connected to Huly®: KIT-276

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions