Skip to content

Claude Opus 4 request fails because max token too high (64000 but should be 32000) #15785

@chriscross2

Description

@chriscross2

Bug Description:

Request to Anthropic Claude Opus 4 (20250514) fails with 400 (invalid request error) due to max tokens being too high.

In

it is set to 64000 but should be 32000 as mentioned on Anthropic's model overview: https://docs.anthropic.com/en/docs/about-claude/models/overview

Steps to Reproduce:

  1. Select Claude Opus 4 as Language model for an Agent, e.g. Architect
  2. Send prompt via AI chat

Additional Information

  • Operating System: Win 11
  • Theia Version: v1.62.101

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