Skip to content

feat(models): add gpt-5.4-mini and nano - #1846

Merged
smakosh merged 3 commits into
mainfrom
feat/add-gpt-5.4-mini-nano
Mar 18, 2026
Merged

smakosh merged 3 commits into
mainfrom
feat/add-gpt-5.4-mini-nano

Conversation

@rcogal

@rcogal rcogal commented Mar 18, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Add OpenAI GPT-5.4 Mini ($0.75/$4.50 per 1M tokens) — strong mini model for coding, computer use, and subagents
  • Add OpenAI GPT-5.4 Nano ($0.20/$1.25 per 1M tokens) — cheapest GPT-5.4-class model for high-volume tasks

Both models support 400K context, 128K max output, reasoning, vision, tools, web search, and structured outputs.

Test plan

  • E2E tests pass with TEST_MODELS="openai/gpt-5.4-mini,openai/gpt-5.4-nano" (80 passed)
  • Prompt caching verified with cached tokens confirmed
  • Build succeeds

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Added support for two new OpenAI models, gpt-5.4-mini and gpt-5.4-nano. Both models are available with published pricing, context size and max output limits, and enable advanced capabilities including streaming, vision, tools, web search, reasoning, and structured JSON output.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@rcogal rcogal linked an issue Mar 18, 2026 that may be closed by this pull request
@coderabbitai

coderabbitai Bot commented Mar 18, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: d48a222b-700d-4b65-bf9a-e14fe3c300ff

📥 Commits

Reviewing files that changed from the base of the PR and between 8da2f39 and e2a2bdd.

📒 Files selected for processing (1)
  • packages/models/src/models/openai.ts

Walkthrough

Two new OpenAI model entries—gpt-5.4-mini and gpt-5.4-nano—were added to the openaiModels array with full provider configurations (pricing tiers, context sizes, max output tokens, and capability flags).

Changes

Cohort / File(s) Summary
OpenAI model additions
packages/models/src/models/openai.ts
Added gpt-5.4-mini and gpt-5.4-nano entries to openaiModels including providerId, modelName, pricing, contextSize, maxOutput, and capability flags (streaming, vision, tools, webSearch, reasoning, jsonOutput/jsonOutputSchema).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • steebchen
  • kmk142789
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'feat(models): add gpt-5.4-mini and nano' directly and clearly summarizes the main change: adding two new OpenAI model entries (gpt-5.4-mini and gpt-5.4-nano) to the models configuration.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/add-gpt-5.4-mini-nano
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Tip

You can customize the tone of the review comments and chat replies.

Configure the tone_instructions setting to customize the tone of the review comments and chat replies. For example, you can set the tone to Act like a strict teacher, Act like a pirate and more.

Comment thread packages/models/src/models/openai.ts Outdated
Comment thread packages/models/src/models/openai.ts Outdated
@smakosh
smakosh enabled auto-merge March 18, 2026 16:10
@smakosh
smakosh added this pull request to the merge queue Mar 18, 2026
Merged via the queue into main with commit 9214240 Mar 18, 2026
13 checks passed
@smakosh
smakosh deleted the feat/add-gpt-5.4-mini-nano branch March 18, 2026 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New GPT Models

3 participants