Skip to content

Conversation

@karpetrosyan
Copy link
Collaborator

@karpetrosyan karpetrosyan commented Jan 20, 2026

Third-party clients (Vertex, Bedrock) don’t support structured outputs and its beta header, so when the SDK sets it, the remote server returns Error code: 400 - {'message': 'invalid beta flag'}.

This change just avoids always setting that header, so we can still port the tool_runner and stream helpers, which use parse method internally, with minimal changes.

@karpetrosyan karpetrosyan requested a review from a team as a code owner January 20, 2026 12:20
Copy link
Collaborator

@RobertCraigie RobertCraigie left a comment

Choose a reason for hiding this comment

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

Nice!

@karpetrosyan
Copy link
Collaborator Author

@RobertCraigie merge it please if it's ready. I can't merge unfortunately, even the approved ones 😢

@RobertCraigie
Copy link
Collaborator

Ah sorry I forgot you can't do that yet :(

@RobertCraigie RobertCraigie merged commit 062077e into anthropics:next Jan 20, 2026
5 of 6 checks passed
@stainless-app stainless-app bot mentioned this pull request Jan 20, 2026
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.

2 participants