Skip to content

fix: strip schema field from tool definitions to prevent 500 errors#1144

Closed
Ashutosh0x wants to merge 3 commits intoanthropics:mainfrom
Ashutosh0x:fix-schema-stripping
Closed

fix: strip schema field from tool definitions to prevent 500 errors#1144
Ashutosh0x wants to merge 3 commits intoanthropics:mainfrom
Ashutosh0x:fix-schema-stripping

Conversation

@Ashutosh0x
Copy link
Copy Markdown

This PR addresses Issue #1001 where including the schema field in tool input_schema caused 500 Internal Server Errors from the API. Changes: Implemented _strip_tools helper and applied it to Messages methods in standard and beta resources.

@Ashutosh0x Ashutosh0x requested a review from a team as a code owner January 22, 2026 05:52
@localden
Copy link
Copy Markdown
Collaborator

Thank you for the PR - src/anthropic/resources/beta/messages/messages.py, src/anthropic/resources/messages/messages.py are auto-generated from the OpenAPI spec via Stainless, so manual edits here will be overwritten on the next codegen run. If this is a spec issue, it needs to be fixed upstream. Closing.

@localden localden closed this Apr 28, 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