Skip to content

Conversation

@hannesrudolph
Copy link
Collaborator

@hannesrudolph hannesrudolph commented Dec 11, 2025

Summary

Add OpenAI's new flagship model gpt-5.2 to the openai-native provider and set it as the new default model.

Changes

  • Add gpt-5.2 model definition with:
    • 400,000 context window
    • 128,000 max output tokens
    • Reasoning support: none, low, medium, high, xhigh
    • Verbosity support
    • 24h prompt cache retention
    • Standard pricing: $1.75/M input, $0.175/M cache, $14.00/M output
    • Flex tier: $0.875/M input, $0.0875/M cache, $7.00/M output
    • Priority tier: $3.50/M input, $0.35/M cache, $28.00/M output
  • Update default model from gpt-5.1 to gpt-5.2
  • Update test to expect the new default model

Important

Add gpt-5.2 model to OpenAI provider, set as default, and update tests accordingly.

  • Behavior:
    • Add gpt-5.2 model to openai.ts with 400,000 context window, 128,000 max output tokens, and various pricing tiers.
    • Update default model from gpt-5.1 to gpt-5.2 in openai.ts.
  • Tests:
    • Update openai-native.spec.ts to expect gpt-5.2 as the default model.
    • Add tests for gpt-5.2 model handling in openai-native.spec.ts.

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

- Add gpt-5.2 model with 400k context, 128k max output tokens
- Support reasoning efforts: none, low, medium, high, xhigh
- Pricing: $1.75/M input, $14/M output (standard tier)
- Flex tier: $0.875/M input, $7/M output
- Priority tier: $3.50/M input, $28/M output
- Set gpt-5.2 as the new default model
- Update test to expect new default model
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. Enhancement New feature or request labels Dec 11, 2025
@roomote
Copy link
Contributor

roomote bot commented Dec 11, 2025

Oroocle Clock   Follow along on Roo Cloud

Reviewing your PR now. Feedback coming up!

Previous reviews

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

@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Dec 11, 2025
Copy link
Contributor

@PeterDaveHello PeterDaveHello left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are also gpt-5.2-pro and gpt-5.2-chat-latest should bd added ;)

@PeterDaveHello
Copy link
Contributor

Though it may be duplicated, I prepared a more complete version here: #10026

- Add gpt-5.2-chat-latest with 128k context, 16k max output tokens
- Pricing: $1.75/M input, $0.175/M cache, $14.00/M output
- Optimized for conversational AI and chat use cases
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Dec 11, 2025
@hannesrudolph
Copy link
Collaborator Author

There are also gpt-5.2-pro and gpt-5.2-chat-latest should bd added ;)

Pro does not work properly in Roo at this time due to its timeout requirements

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Dec 11, 2025
Add tool restrictions to gpt-5.2-chat-latest for consistency with
gpt-5-chat-latest and other GPT-5 model definitions.
@hannesrudolph hannesrudolph merged commit 51dbccf into main Dec 11, 2025
10 checks passed
@hannesrudolph hannesrudolph deleted the feat/add-gpt-5.2-model branch December 11, 2025 20:16
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Dec 11, 2025
@github-project-automation github-project-automation bot moved this from Triage to Done in Roo Code Roadmap Dec 11, 2025
@cte cte mentioned this pull request Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement New feature or request Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants