Skip to content

[Bug]: Thinking type adaptive is not supported with budget_tokens #1126

@ASRagab

Description

@ASRagab

Bug Description

   ⏱️  Time elapsed before failure: 1.13s
   📝 Error: Error code: 400 - {'type': 'error', 'error': {'type': 'invalid_request_error', 'message': 'thinking.adaptive.budget_tokens: Extra inputs are not permitted'}, 'request_id': 'req_011CYzFhi93zweZCwVfmaPi

When using anthropic models such opus-4-6, budget_tokens is being sent with adaptive thinking, which is not supported, either use enabled but will be deprecated or use effort instead of budget_tokens

Image

Steps to Reproduce

  1. Run hermes chat --provider anthropic --model claude-opus-4-6
  2. Enter anything.

Expected Behavior

Should return response and not 400

Actual Behavior

⏱️ Time elapsed before failure: 1.13s
📝 Error: Error code: 400 - {'type': 'error', 'error': {'type': 'invalid_request_error', 'message': 'thinking.adaptive.budget_tokens: Extra inputs are not permitted'}, 'request_id': 'req_011CYzFhi93zweZCwVfmaPi

Affected Component

Agent Core (conversation loop, context compression, memory)

Messaging Platform (if gateway-related)

No response

Operating System

Ubuntu 24.04

Python Version

3.11.15

Hermes Version

v0.2.0 (2026.3.12)

Relevant Logs / Traceback

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

No response

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugSomething isn't working

    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