Skip to content

Conversation

@hannesrudolph
Copy link
Collaborator

@hannesrudolph hannesrudolph commented Jan 14, 2026

Summary

Adds the new GPT-5.2-Codex model to the openai-native provider. This is OpenAI's most intelligent coding model optimized for long-horizon, agentic coding tasks.

Changes

  • Added gpt-5.2-codex model definition to packages/types/src/providers/openai.ts

Model Specifications

Property Value
Context Window 400,000 tokens
Max Output 128,000 tokens
Reasoning Effort low, medium, high, xhigh (default: medium)
Standard Input Price $1.75/1M tokens
Standard Output Price $14.00/1M tokens
Cached Input Price $0.175/1M tokens
Priority Input Price $3.50/1M tokens
Priority Output Price $28.00/1M tokens
Image Support Yes
Prompt Cache 24h retention
Included Tools apply_patch
Excluded Tools apply_diff, write_to_file

Important

Adds gpt-5.2-codex model to openai.ts, optimized for coding tasks with specific token limits, pricing, and tool support.

  • Model Addition:
    • Adds gpt-5.2-codex to openAiNativeModels in openai.ts.
    • Optimized for long-horizon, agentic coding tasks.
  • Specifications:
    • Context window: 400,000 tokens, Max output: 128,000 tokens.
    • Reasoning effort: low, medium, high, xhigh (default: medium).
    • Pricing: Standard input $1.75/1M tokens, output $14.00/1M tokens.
    • Supports images, prompt cache (24h retention), and apply_patch tool.
    • Excludes apply_diff and write_to_file tools.

This description was created by Ellipsis for a60521b. You can customize this summary. It will automatically update as commits are pushed.

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. Enhancement New feature or request labels Jan 14, 2026
@roomote
Copy link
Contributor

roomote bot commented Jan 14, 2026

Oroocle Clock   See task on Roo Cloud

Review complete. No issues found in this change.

  • No issues found

Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues.

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jan 14, 2026
@hannesrudolph hannesrudolph merged commit b04597f into main Jan 14, 2026
21 checks passed
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Jan 14, 2026
@hannesrudolph hannesrudolph deleted the feat/add-gpt-5.2-codex-model branch January 14, 2026 20:02
@github-project-automation github-project-automation bot moved this from Triage to Done in Roo Code Roadmap Jan 14, 2026
@mrubens mrubens mentioned this pull request Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement New feature or request lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants