Skip to content

Add OpenAI GPT-5.3 chat latest and GPT-5.4 model support#11848

Merged
hannesrudolph merged 2 commits intoRooCodeInc:mainfrom
PeterDaveHello:Add-OpenAI-GPT-5.3-Chat-Latest
Mar 5, 2026
Merged

Add OpenAI GPT-5.3 chat latest and GPT-5.4 model support#11848
hannesrudolph merged 2 commits intoRooCodeInc:mainfrom
PeterDaveHello:Add-OpenAI-GPT-5.3-Chat-Latest

Conversation

@PeterDaveHello
Copy link
Contributor

@PeterDaveHello PeterDaveHello commented Mar 3, 2026

Description

This PR adds OpenAI Native support for gpt-5.3-chat-latest and gpt-5.4.

Implementation details:

  • Added gpt-5.3-chat-latest to openAiNativeModels with chat model limits and pricing:
    • maxTokens: 16_384
    • contextWindow: 128_000
    • inputPrice: 1.75
    • outputPrice: 14.0
    • cacheReadsPrice: 0.175
    • supportsImages: true
    • supportsPromptCache: true
  • Kept gpt-5.3-chat-latest aligned with existing chat-latest conventions by not explicitly setting supportsTemperature.
  • Added gpt-5.4 to openAiNativeModels with current limits, pricing, and capabilities:
    • maxTokens: 128_000
    • contextWindow: 1_050_000
    • inputPrice: 2.5
    • cacheReadsPrice: 0.25
    • outputPrice: 15.0
    • supportsImages: true
    • supportsPromptCache: true
    • supportsVerbosity: true
    • supportsReasoningEffort: ["none", "low", "medium", "high", "xhigh"]
    • reasoningEffort: "none"
  • Added GPT-5.4 long-context cost handling for > 272_000 input tokens:
    • applies only to default and flex service tiers
    • applies 2x uncached input pricing and 1.5x output pricing
    • does not apply the surcharge to priority or cached input reads
  • Added coverage in openai-native tests for:
    • model resolution via getModel()
    • Responses API request bodies for gpt-5.3-chat-latest and gpt-5.4
    • GPT-5.4 default reasoning payload (reasoning.effort = "none")
    • prompt cache retention behavior
    • GPT-5.4 usage-cost normalization across base, long-context, and priority-tier scenarios
  • Added changesets for patch releases:
    • .changeset/gpt-5-3-chat-latest.md
    • .changeset/gpt-5-4.md

Files changed:

  • packages/types/src/model.ts
  • packages/types/src/providers/openai.ts
  • src/shared/cost.ts
  • src/api/providers/openai-native.ts
  • src/api/providers/__tests__/openai-native.spec.ts
  • src/api/providers/__tests__/openai-native-usage.spec.ts
  • src/utils/__tests__/cost.spec.ts
  • .changeset/gpt-5-3-chat-latest.md
  • .changeset/gpt-5-4.md

Test Procedure

Run targeted tests for the affected provider and cost specs:

pnpm --filter roo-cline exec vitest run api/providers/__tests__/openai-native.spec.ts api/providers/__tests__/openai-native-usage.spec.ts utils/__tests__/cost.spec.ts

Observed result:

  • Test Files 3 passed (3)
  • Tests 89 passed (89)

Notes:

  • Running pnpm --filter roo-cline test -- ... triggers pretest and a broader validation surface, so the targeted vitest run command above was used for focused verification.

Pre-Submission Checklist

  • Issue Linked: This PR is linked to an approved GitHub Issue (see "Related GitHub Issue" above).
  • Scope: My changes are focused on the linked issue (one major feature/fix per PR).
  • Self-Review: I have performed a thorough self-review of my code.
  • Testing: New and/or updated tests have been added to cover my changes (if applicable).
  • Documentation Impact: I have considered if my changes require documentation updates (see "Documentation Updates" section below).
  • Contribution Guidelines: I have read and agree to the Contributor Guidelines.

Screenshots / Videos

N/A (no UI changes)

Documentation Updates

  • No documentation updates are required.
  • Yes, documentation updates are required.

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. changelog-ready labels Mar 3, 2026
@PeterDaveHello PeterDaveHello force-pushed the Add-OpenAI-GPT-5.3-Chat-Latest branch from 5a6e9f5 to bcfeaf4 Compare March 5, 2026 20:17
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Mar 5, 2026
@PeterDaveHello PeterDaveHello changed the title Add OpenAI GPT-5.3 chat latest model support Add OpenAI GPT-5.3 chat latest and GPT-5.4 model support Mar 5, 2026
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Mar 5, 2026
@hannesrudolph hannesrudolph merged commit 0612739 into RooCodeInc:main Mar 5, 2026
13 checks passed
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Mar 5, 2026
@github-actions github-actions bot mentioned this pull request Mar 4, 2026
@PeterDaveHello PeterDaveHello deleted the Add-OpenAI-GPT-5.3-Chat-Latest branch March 6, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog-ready lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants