From dad1be429efd3e6b2f5e964d4f634d61fb7a3bcc Mon Sep 17 00:00:00 2001 From: Sergey Kozyrenko Date: Fri, 26 Jun 2026 13:44:58 +0700 Subject: [PATCH] feat(providers): declare reasoning efforts for gpt-5.2-codex and gpt-5-pro MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Verified per the official OpenAI model pages: - gpt-5.2-codex: [low, medium, high, xhigh] - gpt-5-pro: [high] (the page states it "only supports reasoning.effort: high") Other openai reasoning models (gpt-5, gpt-5.1 = no xhigh; gpt-5-mini/nano, codex variants, o-series) keep the default — their official pages do not enumerate an accepted effort set. Co-Authored-By: Claude Opus 4.8 --- backend/pkg/providers/openai/models.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/pkg/providers/openai/models.yml b/backend/pkg/providers/openai/models.yml index ab2eb33d..91539dc2 100644 --- a/backend/pkg/providers/openai/models.yml +++ b/backend/pkg/providers/openai/models.yml @@ -76,6 +76,8 @@ - name: gpt-5-pro description: Premium version of GPT-5 with major improvements in reasoning depth and code quality. Optimized for complex security tasks requiring step-by-step reasoning, reduced hallucinations, and exceptional accuracy in high-stakes penetration testing. Superior instruction following and advanced prompt understanding for critical security operations. thinking: true + reasoning: + efforts: [high] release_date: 2025-08-07 price: input: 15.0 @@ -150,6 +152,8 @@ - name: gpt-5.2-codex description: Most advanced code-specialized model optimized for agentic security coding. Features context compaction for long-horizon work, superior performance on large code refactors and migrations, enhanced Windows environment support, and significantly stronger cybersecurity capabilities. Ideal for vulnerability discovery, exploit chain development, and complex code analysis in large repositories. thinking: true + reasoning: + efforts: [low, medium, high, xhigh] release_date: 2025-12-11 price: input: 1.75