Skip to content

Conversation

@Tosha-8
Copy link

@Tosha-8 Tosha-8 commented Jul 10, 2025

Summary

Fixes critical bug where invalid tool type names prevented the computer-use-demo from functioning with BadRequestError.

Problem

  • EditTool20241022 used invalid type text_editor_20250429 instead of text_editor_20241022
  • BashTool20241022 used invalid type bash_20250124 instead of bash_20241022
  • This caused API validation failures preventing any interaction with Claude

Solution

  • Corrected API type names to match valid Anthropic API enum values
  • Added comprehensive documentation with error screenshot
  • Tested with Claude 3.7 Sonnet on AWS Bedrock

Files Changed

  • computer_use_demo/tools/edit.py - Fixed EditTool20241022 API type
  • computer_use_demo/tools/bash.py - Fixed BashTool20241022 API type
  • BUG_FIX_DOCUMENTATION.md - Complete bug analysis and fix documentation
  • error-screenshot.png - Visual proof of the original error

See BUG_FIX_DOCUMENTATION.md for complete technical details.

…ter-use-demo

- Fixed EditTool20241022 to use text_editor_20241022 instead of text_editor_20250429
- Fixed BashTool20241022 to use bash_20241022 instead of bash_20250124
- Added comprehensive documentation and error screenshot
- Resolves critical issue preventing demo from functioning
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