Skip to content

1- Add model service tiers metadata#20969

Merged
aibrahim-oai merged 4 commits into
mainfrom
aibrahim/model-service-tiers
May 5, 2026
Merged

1- Add model service tiers metadata#20969
aibrahim-oai merged 4 commits into
mainfrom
aibrahim/model-service-tiers

Conversation

@aibrahim-oai

@aibrahim-oai aibrahim-oai commented May 4, 2026

Copy link
Copy Markdown
Collaborator

Why

The model list needs to carry display-ready service tier metadata so clients can render tier choices with stable IDs, names, and descriptions. A raw speed-tier string list is not enough for richer UI copy or future tier labels.

What changed

  • Added ModelServiceTier to shared model metadata with string id, name, and description fields.
  • Added service_tiers to ModelInfo and ModelPreset, preserving empty defaults for older cached model payloads.
  • Exposed serviceTiers on app-server v2 Model responses and threaded it through TUI app-server model conversion.
  • Marked legacy additional_speed_tiers / additionalSpeedTiers metadata as deprecated in source and generated schema output.
  • Regenerated app-server protocol JSON schema and TypeScript fixtures, including ModelServiceTier.ts.

Verification

  • Ran just write-app-server-schema.
  • Did not run local tests per repo instruction; relying on PR CI.

@aibrahim-oai aibrahim-oai requested a review from a team as a code owner May 4, 2026 08:21
Expose service tier metadata on model info and app-server model/list responses so clients can render tier choices with labels and descriptions instead of relying on raw speed-tier strings.

Regenerate app-server protocol schema fixtures for the new serviceTiers field.

Co-authored-by: Codex <noreply@openai.com>
@aibrahim-oai aibrahim-oai changed the base branch from aibrahim/compact-request-parity to main May 4, 2026 08:23
@aibrahim-oai aibrahim-oai force-pushed the aibrahim/model-service-tiers branch from 168f73c to 1020799 Compare May 4, 2026 08:23
aibrahim-oai and others added 2 commits May 4, 2026 11:29
Mark additional_speed_tiers/additionalSpeedTiers as deprecated now that service_tiers/serviceTiers carries display-ready service tier metadata.

Regenerate app-server protocol schema fixtures so clients see the deprecation marker.

Co-authored-by: Codex <noreply@openai.com>
Keep additional_speed_tiers documented as deprecated without using Rust field deprecation, which turns existing compatibility plumbing into errors under Bazel -D warnings.

Map protocol service tier metadata into app-server test expectations across the wire type boundary.

Co-authored-by: Codex <noreply@openai.com>

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

pub fn supports_fast_mode(&self) -> bool {
self.additional_speed_tiers
.iter()
.any(|tier| tier == SPEED_TIER_FAST)

P1 Badge Use service tiers when determining fast-mode support

ModelPreset::supports_fast_mode still checks only additional_speed_tiers. This commit introduces service_tiers as the replacement field, so models that populate only service_tiers will be treated as not supporting fast mode, breaking tier-dependent UI behavior. Update this check to consider the new metadata (and keep legacy fallback).

ℹ️ 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".

Use service_tiers when determining whether a model supports fast mode, while retaining the legacy additional_speed_tiers fallback.

Co-authored-by: Codex <noreply@openai.com>
@aibrahim-oai aibrahim-oai changed the title Add model service tiers metadata 1- Add model service tiers metadata May 4, 2026
@aibrahim-oai aibrahim-oai merged commit 9d57981 into main May 5, 2026
37 of 38 checks passed
@aibrahim-oai aibrahim-oai deleted the aibrahim/model-service-tiers branch May 5, 2026 06:51
@github-actions github-actions Bot locked and limited conversation to collaborators May 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants