Skip to content

Conversation

@bhavyaus
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings November 26, 2025 22:01
@bhavyaus bhavyaus enabled auto-merge November 26, 2025 22:01
@bhavyaus bhavyaus self-assigned this Nov 26, 2025
@bhavyaus bhavyaus requested a review from lramos15 November 26, 2025 22:01
@vs-code-engineering vs-code-engineering bot added this to the November 2025 milestone Nov 26, 2025
Copilot finished reviewing on behalf of bhavyaus November 26, 2025 22:04
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for the Anthropic thinking budget header in the chat completions endpoint path. When using Anthropic models (Claude) through the chat completions endpoint (rather than the native Messages API), the thinking budget configuration is now sent as an HTTP header.

Key Changes

  • Added logic in getExtraHeaders() to detect Anthropic models using the chat completions endpoint
  • When detected and a thinking budget is configured, adds a 'thinking_budget' header with the configured value

Copy link
Member

@lramos15 lramos15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these be modelMetadata.requestHeaders instead of on extra headers? I want to deprecate getExtraHeaders at some point

@bhavyaus bhavyaus added this pull request to the merge queue Dec 1, 2025
Merged via the queue into main with commit 5b2bd65 Dec 1, 2025
22 checks passed
@bhavyaus bhavyaus deleted the dev/bhavyau/update-thinking branch December 1, 2025 15:12
@bhavyaus
Copy link
Contributor Author

bhavyaus commented Dec 1, 2025

Should these be modelMetadata.requestHeaders instead of on extra headers? I want to deprecate getExtraHeaders at some point

I'll move that out when I get this as part of the modelMetadata from CAPI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants