Skip to content

Adds support for GPT-5 models #252

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ustincameron
Copy link

What does this PR do?

  • Introduced handling for new models (gpt-5-with-ocr, gpt-5-research-with-ocr, gpt-5-mini-with-ocr, and gpt-5-nano-with-ocr) in apis.py.
  • Updated config.py to include the new models in validation.
  • Changed default model in main.py to gpt-5-with-ocr.
  • Updated requirements.txt for greater flexibility with dependency versions.
  • Bumped the version in setup.py to 1.6.0.
  • Updates OpenAI client dependency to support GPT-5 API endpoints
Screenshot 2025-08-09 at 1 23 07 PM

Requirement/Documentation

  • ✅ All GPT-5 variants tested and functional
  • ✅ Regression testing confirms existing models still work
  • ✅ Default model properly set to GPT-5
  • ✅ API calls verified with correct OpenAI endpoints
  • ✅ 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

  • New feature (non-breaking change which adds functionality)
  • Tests (Unit/Integration/E2E or any other test)

Mandatory Tasks

  • 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

- Introduced handling for new models (`gpt-5-with-ocr`, `gpt-5-research-with-ocr`, `gpt-5-mini-with-ocr`, and `gpt-5-nano-with-ocr`) in `apis.py`.
- Updated `config.py` to include the new models in validation.
- Changed default model in `main.py` to `gpt-5-with-ocr`.
- Updated `requirements.txt` for greater flexibility with dependency versions.
- Bumped the version in `setup.py` to `1.6.0`.
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.

1 participant