Skip to content

Add Claude 3.7 Sonnet Thinking Mode #206

@malikrohail

Description

@malikrohail

Implementation Details

  • Added a toggle UI component in the chat interface to enable/disable thinking mode
  • Configured the Anthropic API calls to include the thinking parameter when enabled
  • Set default thinking budget to 2000 tokens (configurable)
  • Added appropriate types and settings storage

Changes

  • Added enableThinking and thinkingBudgetTokens to project settings
  • Created a ThinkingToggle component that appears in the chat UI

Testing

  • Verified thinking mode parameters are correctly sent to the API
  • Tested enabling/disabling the feature to see if the model switches back to claude 3.7 sonnet without hinking
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions