Skip to content

Replaced retired OpenAI models - #3134

Open
girishpanchal30 wants to merge 1 commit into
developmentfrom
bugfix/3133
Open

girishpanchal30 wants to merge 1 commit into
developmentfrom
bugfix/3133

Conversation

@girishpanchal30

Copy link
Copy Markdown
Contributor

Closes #3133

Summary

Replaced the default OpenAI model with 'gpt-6-luna' and updated the legacy model to 'gpt-5.6-terra'.


Checklist before the final review

  • [ ] Included E2E or unit tests for the changes in this PR.
  • Visual elements are not affected by independent changes.
  • It is at least compatible with the minimum WordPress version.
  • It loads additional script in frontend only if it is required.
  • Does not impact the Core Web Vitals.
  • In case of deprecation, old blocks are safely migrated.
  • It is usable in Widgets and FSE.
  • Copy/Paste is working if the attributes are modified.
  • PR is following the best practices

Why no test case

The changes only involve updating the default and legacy OpenAI models. These changes do not affect the visual elements, frontend scripts, or any other functionality that would require additional test cases.

@pirate-bot

Copy link
Copy Markdown
Contributor

Bundle Size Diff

Package Old Size New Size Diff
Animations 178.33 KB 178.33 KB 0 B (0.00%)
Blocks 1.65 MB 1.65 MB 0 B (0.00%)
CSS 7.83 KB 7.83 KB 0 B (0.00%)
Dashboard 172.49 KB 172.49 KB 0 B (0.00%)
Onboarding 68.14 KB 68.14 KB 0 B (0.00%)
Export Import 4.73 KB 4.73 KB 0 B (0.00%)
Pro 439.85 KB 439.85 KB 0 B (0.00%)

@girishpanchal30 girishpanchal30 changed the title fix: replace retired OpenAI models Replaced retired OpenAI models Oct 26, 2026
@pirate-bot

Copy link
Copy Markdown
Contributor

Plugin build for e13b19d is ready 🛎️!

@pirate-bot

Copy link
Copy Markdown
Contributor

E2E Tests

Playwright Test Status: See serial and parallel matrix jobs

Performance Results serverResponse: {"q25":476.08,"q50":511.01,"q75":519.86,"cnt":10}, firstPaint: {"q25":1561.03,"q50":1665.67,"q75":1859.85,"cnt":10}, domContentLoaded: {"q25":4349.38,"q50":4363.7,"q75":4383.49,"cnt":10}, loaded: {"q25":4354,"q50":4367.22,"q75":4386.93,"cnt":10}, firstContentfulPaint: {"q25":2786.49,"q50":3261.73,"q75":3293.81,"cnt":10}, firstBlock: {"q25":20060.43,"q50":20136.33,"q75":20279.91,"cnt":10}, type: {"q25":31.76,"q50":36.03,"q75":40.54,"cnt":10}, typeWithoutInspector: {"q25":29.95,"q50":33.73,"q75":37.52,"cnt":10}, typeWithTopToolbar: {"q25":41.63,"q50":44.81,"q75":48.68,"cnt":10}, typeContainer: {"q25":19.38,"q50":19.89,"q75":21.52,"cnt":10}, focus: {"q25":167.12,"q50":170.76,"q75":175.82,"cnt":10}, inserterOpen: {"q25":52.92,"q50":57.38,"q75":61.71,"cnt":10}, inserterSearch: {"q25":34.34,"q50":35.38,"q75":36.7,"cnt":10}, inserterHover: {"q25":5.03,"q50":5.44,"q75":6.25,"cnt":20}, loadPatterns: {"q25":2182.59,"q50":2246.86,"q75":2307.15,"cnt":10}, listViewOpen: {"q25":283.42,"q50":291.14,"q75":302.67,"cnt":10}

@pirate-bot pirate-bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

QA check: The code change is correct by source and OpenAI documentation, but no real OpenAI request ran with the new models.

Validation details
  • Files reviewed: 2/2 changed files.
  • Source read: the key check sends only model and messages, so no model-specific parameter breaks it.
  • OpenAI model pages list gpt-6-luna and gpt-5.6-terra as supported on Chat Completions.
  • OpenAI deprecations list gpt-5-mini for shutdown on December 11, 2026.
  • No other production request path still names a retired model.
  • Question for the author: the summary calls gpt-6-luna the default model. It is the key-check model. Please correct the PR text.
QA steps
  1. Open Otter Blocks settings, enter a valid OpenAI API key, and click Save. Expected: the key saves without an error.
  2. In the block editor, generate content with the Otter AI block. Expected: the block returns generated content.
Untested areas
  • No live OpenAI request ran, because the sandbox has no API key.
  • No PHPUnit run. The tests do not assert the model name.

🤖 Automated review · run code-review-agent_6adf233c696970.84834746.


🤖 Review agent — review posted ✅ on e13b19d8 · commented · 0 findings · 8 min

Run code-review-agent_6adf233c696970.84834746 · trail

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.

2 participants