Skip to content

Added gpt-5.4 family and altered default model ids#740

Open
Podden wants to merge 3 commits intojrkropp:alpha-previewfrom
vr-bits:alpha-preview
Open

Added gpt-5.4 family and altered default model ids#740
Podden wants to merge 3 commits intojrkropp:alpha-previewfrom
vr-bits:alpha-preview

Conversation

@Podden
Copy link
Copy Markdown

@Podden Podden commented Feb 25, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 25, 2026 10:26
Copy link
Copy Markdown

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

This PR adds support for new GPT-5.2 model variants (gpt-5.2-pro, gpt-5.2, gpt-5.1) to the OpenAI Responses API Manifold, along with their corresponding -thinking aliases. The default model list has been completely replaced with only gpt-5.2 models, and the version has been bumped to 0.9.8.

Changes:

  • Added three new base model specifications: gpt-5.2-pro, gpt-5.2, and gpt-5.1 with full feature sets
  • Added chat-latest variants: gpt-5.2-chat-latest and gpt-5.1-chat-latest
  • Added -thinking aliases for gpt-5.2 and gpt-5.1 (standard, minimal, and high reasoning efforts)
  • Replaced default MODEL_ID list to exclusively feature gpt-5.2 models
  • Version bumped from 0.9.7 to 0.9.8

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

Comment on lines +64 to +88
@@ -77,13 +83,24 @@ class ModelFamily:
"o4-mini": {"features": {"function_calling","reasoning","reasoning_summary","web_search_tool"}},
"o3-deep-research": {"features": {"function_calling","reasoning","reasoning_summary","deep_research"}},
"o4-mini-deep-research":{"features": {"function_calling","reasoning","reasoning_summary","deep_research"}},

"gpt-5-chat-latest": {"features": {"function_calling","web_search_tool"}}, # Chat-optimized non-reasoning model does not support tool calling, or any other advanced features.

"gpt-5.2-chat-latest": {"features": {"function_calling","web_search_tool"}},
"gpt-5.1-chat-latest": {"features": {"function_calling","web_search_tool"}},
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

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

There is an inconsistency in the model specifications: gpt-5.2 has three base models defined (gpt-5.2-pro, gpt-5.2, and gpt-5.2-chat-latest), while gpt-5.1 only has two (gpt-5.1 and gpt-5.1-chat-latest). If gpt-5.2-pro is intended to be a variant of gpt-5.2 (similar to how gpt-5, gpt-5-mini, and gpt-5-nano are variants), then gpt-5.1 should also have a gpt-5.1-pro variant for consistency. Alternatively, if gpt-5.2-pro is a standalone model tier, this naming pattern should be clarified in documentation.

Copilot uses AI. Check for mistakes.
Comment on lines +96 to +102
"gpt-5.2-thinking": {"base_model": "gpt-5.2"},
"gpt-5.2-thinking-minimal": {"base_model": "gpt-5.2", "params": {"reasoning": {"effort": "minimal"}}},
"gpt-5.2-thinking-high": {"base_model": "gpt-5.2", "params": {"reasoning": {"effort": "high"}}},

"gpt-5.1-thinking": {"base_model": "gpt-5.1"},
"gpt-5.1-thinking-minimal": {"base_model": "gpt-5.1", "params": {"reasoning": {"effort": "minimal"}}},
"gpt-5.1-thinking-high": {"base_model": "gpt-5.1", "params": {"reasoning": {"effort": "high"}}},
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

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

Following the established pattern in this codebase where gpt-5 has variants (gpt-5, gpt-5-mini, gpt-5-nano), the new gpt-5.2 and gpt-5.1 models should also have -mini and -nano variants with corresponding -thinking aliases. Currently, gpt-5.2-pro appears to be a standalone model without related mini/nano tiers, and gpt-5.2 and gpt-5.1 lack the mini/nano variants that exist for gpt-5. This inconsistency makes the model hierarchy unclear. Either add the missing variants or document why gpt-5.2 and gpt-5.1 have a different tier structure than gpt-5.

Copilot uses AI. Check for mistakes.
# Base models → capabilities.
_SPECS: Dict[str, Dict[str, Any]] = {
"gpt-5-auto": {"features": {"function_calling","reasoning","reasoning_summary","web_search_tool","image_gen_tool","verbosity"}},
"gpt-5.2-pro": {"features": {"function_calling","reasoning","reasoning_summary","web_search_tool","image_gen_tool","verbosity"}},
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

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

The indentation for the new model entries is inconsistent with the existing pattern. The key "gpt-5-auto" uses spaces to align the colon after the model name, while the new entries "gpt-5.2-pro", "gpt-5.2", and "gpt-5.1" use additional spaces before the opening brace that don't match the existing alignment pattern. Compare line 63 (gpt-5-auto has specific spacing) with lines 64-66 (new entries have different spacing). For consistency, the new entries should follow the same alignment pattern as existing entries.

Suggested change
"gpt-5.2-pro": {"features": {"function_calling","reasoning","reasoning_summary","web_search_tool","image_gen_tool","verbosity"}},
"gpt-5.2-pro": {"features": {"function_calling","reasoning","reasoning_summary","web_search_tool","image_gen_tool","verbosity"}},

Copilot uses AI. Check for mistakes.
description: Brings OpenAI Response API support to Open WebUI, enabling features not possible via Completions API.
required_open_webui_version: 0.6.28
version: 0.9.7
version: 0.9.8
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

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

The CHANGELOG.md file contains dates in the future (e.g., version 0.9.9 dated 2025-10-01, version 0.9.8 dated 2025-09-30, etc.). The current date is February 25, 2026, so these dates appear to be from the past relative to today, but they were likely future dates when originally written. However, the version being updated in this PR is 0.9.8, which according to the CHANGELOG should have been released on 2025-09-30. The CHANGELOG entry for 0.9.8 states it includes refined status sequences, but this PR adds new GPT-5.2 models, which is not reflected in the existing CHANGELOG entry. Either the version number should be incremented to 0.9.9 or higher, or a new CHANGELOG entry should be added documenting the addition of gpt-5.2 models.

Copilot uses AI. Check for mistakes.
# Models
MODEL_ID: str = Field(
default="gpt-5-auto, gpt-5-chat-latest, gpt-5-thinking, gpt-5-thinking-high, gpt-5-thinking-minimal, gpt-4.1-nano, chatgpt-4o-latest, o3, gpt-4o",
default="gpt-5.2-pro, gpt-5.2-chat-latest, gpt-5.2-thinking, gpt-5.2-thinking-high, gpt-5.2-thinking-minimal",
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

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

The default MODEL_ID has been completely replaced, removing all previously default models (gpt-5-auto, gpt-5-chat-latest, gpt-5-thinking variants, gpt-4.1-nano, chatgpt-4o-latest, o3, gpt-4o) and replacing them exclusively with gpt-5.2 variants. This is a significant breaking change that will affect all existing users who rely on the default model list. Users who have not customized their MODEL_ID valve will suddenly lose access to all previously available models and only have access to the new gpt-5.2 models. Consider either appending the new models to the existing defaults, or making this change in a major version update with clear migration documentation.

Suggested change
default="gpt-5.2-pro, gpt-5.2-chat-latest, gpt-5.2-thinking, gpt-5.2-thinking-high, gpt-5.2-thinking-minimal",
default=(
"gpt-5-auto, gpt-5-chat-latest, "
"gpt-5-thinking, gpt-5-thinking-high, gpt-5-thinking-minimal, "
"gpt-4.1-nano, chatgpt-4o-latest, o3, gpt-4o, "
"gpt-5.2-pro, gpt-5.2-chat-latest, gpt-5.2-thinking, gpt-5.2-thinking-high, gpt-5.2-thinking-minimal"
),

Copilot uses AI. Check for mistakes.
Updated Readme and Changelog
@Podden
Copy link
Copy Markdown
Author

Podden commented Feb 25, 2026

I've added gpt-5.3-codex as well alongside the new "xhigh" parameter for thinking. Also the OpenAI doc states that temperature and top_p is not supported when effort is set to anything but "none" so I've accounted for that as well:

GPT-5.2 parameter compatibility
The following parameters are only supported when using GPT-5.2 with reasoning effort set to none:
    temperature
    top_p
    logprobs
Requests to GPT-5.2 or GPT-5.1 with any other reasoning effort setting, or to older GPT-5 models (e.g., gpt-5, gpt-5-mini, gpt-5-nano) that include these fields will raise an error.

@Podden Podden changed the title Added gpt-5.2 models and altered default model ids Added gpt-5.4 family and altered default model ids Mar 25, 2026
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