Skip to content

[Bug]: Can't use model without _effort_ support. #2924

@pcastellazzi

Description

@pcastellazzi

Bug Description

Claude Haiku 4.5 fails with "This model does not support the effort parameter".

Steps to Reproduce

curl -fsSL https://forgecode.dev/cli | sh

Model: claude-haiku-4-5-20251001

# .forge.toml
[reasoning]
enabled = false
effort = "none"
:forge Hello

Expected Behavior

It should say Hello back (or something similar) without producing any errors.

Actual Behavior

● [02:00:33] ERROR: POST https://api.anthropic.com/v1/messages
    Caused by: 400 Bad Request Reason: {"type":"error","error":{"type":"invalid_request_error","message":"This model does not support the effort parameter."},"request_id":"req_xxxxx"}

Forge Version

2.10.0

Operating System & Version

Debian Trixie

AI Provider

Anthropic

Model

claude-haiku-4-5-20251001

Installation Method

Other

Configuration

# .forge.toml
[reasoning]
enabled = false
effort = "none"

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions