Skip to content

feat(model): add latest OpenAI model presets#416

Merged
c121914yu merged 4 commits intolabring:mainfrom
c121914yu:codex/plugin-model-update-20260507-clean
May 9, 2026
Merged

feat(model): add latest OpenAI model presets#416
c121914yu merged 4 commits intolabring:mainfrom
c121914yu:codex/plugin-model-update-20260507-clean

Conversation

@c121914yu
Copy link
Copy Markdown
Contributor

Summary

  • add OpenAI gpt-5.5 and gpt-5.5-pro model presets
  • refresh GPT-5.x context/output limits and gpt-5.4-pro response format metadata
  • add current OpenAI TTS/STT presets and shared TTS voice lists

Verification

  • bun tsc --noEmit
  • OpenAI provider schema parse

Full bun test still has unrelated existing environment/test failures in docDiff, Feishu, YouTube, and SDK tests.

c121914yu added 2 commits May 7, 2026 11:15
Add GPT-5.5, refresh GPT-5 context metadata, and add current OpenAI speech models.
Copilot AI review requested due to automatic review settings May 7, 2026 14:28
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c4ae257783

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

list: [
{
type: ModelTypeEnum.llm,
model: 'gpt-5.5',
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Avoid registering unpublished OpenAI model IDs

When this provider list is returned from initModels, users can select this new preset, but OpenAI's current public model catalog lists gpt-5.2/gpt-5.2-pro as the latest GPT-5 models and does not expose gpt-5.5 or gpt-5.5-pro (https://platform.openai.com/docs/models). In any environment that picks this added gpt-5.5 entry, the first OpenAI request will fail with a model-not-found error instead of using a valid latest model ID, so this should be removed or changed to a published alias.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the OpenAI provider’s model preset catalog to include the latest GPT-5.5 LLM presets, refreshed GPT-5.x limits/metadata, and current OpenAI TTS/STT presets (including shared voice lists).

Changes:

  • Added gpt-5.5 and gpt-5.5-pro LLM presets and refreshed GPT-5.x context/output limits.
  • Introduced shared OpenAI TTS voice lists and added gpt-4o-mini-tts, tts-1-hd, plus new STT presets.
  • Adjusted gpt-5.4-pro metadata (notably response format handling).
Comments suppressed due to low confidence (1)

modules/model/provider/OpenAI/index.ts:117

  • The gpt-5.4-pro preset no longer sets responseFormatList, while other GPT-5.x presets still do. If downstream UI/config logic uses responseFormatList to determine available response formats, this regression may remove format options for gpt-5.4-pro. Consider restoring an explicit responseFormatList (even if it’s just ['text'] or whatever is supported) to keep behavior consistent across GPT-5.x presets.
      type: ModelTypeEnum.llm,
      model: 'gpt-5.4-pro',
      maxContext: 1050000,
      maxTokens: 128000,
      quoteMaxToken: 1000000,
      maxTemperature: null,
      vision: true,
      reasoning: true,
      reasoningEffort: true,
      toolChoice: true

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +58 to +59
const legacyTtsVoices = ttsVoices.filter(
({ value }) => !['ballad', 'verse', 'marin', 'cedar'].includes(value)
c121914yu added 2 commits May 9, 2026 15:58
…update-20260507-clean

# Conflicts:
#	modules/model/provider/OpenAI/index.ts
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 9, 2026

Build Successful - Preview Images for this PR:

registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin-pr:1f6bc27d41d9c6d72948adad32d88554e20001b6

Changed packages:
None

@c121914yu c121914yu merged commit 89d02d9 into labring:main May 9, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants