From bb115432f27acab6c905534b3e132412363b4c38 Mon Sep 17 00:00:00 2001 From: mrT23 Date: Fri, 8 Aug 2025 09:39:24 +0300 Subject: [PATCH] feat: add support for new GPT-5 models and update documentation --- README.md | 4 ++++ pr_agent/algo/__init__.py | 2 ++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 82cb3ada..35183d6a 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,10 @@ You can receive automatic feedback from Qodo Merge on your local IDE after each ## News and Updates +## Aug 8, 2025 + +Added full support for GPT-5 models. View the [benchmark results](https://qodo-merge-docs.qodo.ai/pr_benchmark/#pr-benchmark-results) for details on the performance of GPT-5 models in PR-Agent. + ## Jul 1, 2025 You can now receive automatic feedback from Qodo Merge in your local IDE after each commit. Read more about it [here](https://github.com/qodo-ai/agents/tree/main/agents/qodo-merge-post-commit). diff --git a/pr_agent/algo/__init__.py b/pr_agent/algo/__init__.py index db2da0eb..4e82521c 100644 --- a/pr_agent/algo/__init__.py +++ b/pr_agent/algo/__init__.py @@ -28,6 +28,8 @@ MAX_TOKENS = { 'gpt-4.1-mini-2025-04-14': 1047576, 'gpt-4.1-nano': 1047576, 'gpt-4.1-nano-2025-04-14': 1047576, + 'gpt-5-nano': 200000, # 200K, but may be limited by config.max_model_tokens + 'gpt-5-mini': 200000, # 200K, but may be limited by config.max_model_tokens 'gpt-5': 200000, 'gpt-5-2025-08-07': 200000, 'o1-mini': 128000, # 128K, but may be limited by config.max_model_tokens