self-operating-computer
self-operating-computer copied to clipboard
Adds support for GPT-5 models
What does this PR do?
- Introduced handling for new models (
gpt-5-with-ocr,gpt-5-research-with-ocr,gpt-5-mini-with-ocr, andgpt-5-nano-with-ocr) inapis.py. - Updated
config.pyto include the new models in validation. - Changed default model in
main.pytogpt-5-with-ocr. - Updated
requirements.txtfor greater flexibility with dependency versions. - Bumped the version in
setup.pyto1.6.0. - Updates OpenAI client dependency to support GPT-5 API endpoints
Requirement/Documentation
- :white_check_mark: All GPT-5 variants tested and functional
- :white_check_mark: Regression testing confirms existing models still work
- :white_check_mark: Default model properly set to GPT-5
- :white_check_mark: API calls verified with correct OpenAI endpoints
- :white_check_mark: No breaking changes to existing functionality
Usage Examples
# Use new default (GPT-5)
operate --prompt "Go to [Google.com](http://google.com/)"
# Specific GPT-5 variants
operate -m gpt-5-mini-with-ocr --prompt "Open calculator"
operate -m gpt-5-nano-with-ocr --prompt "Take screenshot"
# Existing models still work
operate -m gpt-4-with-ocr --prompt "Go to GitHub"
Type of change
- [x] New feature (non-breaking change which adds functionality)
- [x] Tests (Unit/Integration/E2E or any other test)
Mandatory Tasks
- [x] Make sure you have self-reviewed the code. A decent size PR without self-review might be rejected. Make sure before submmiting this PR you run tests with evaluate.py