Skip to content

[BOT ISSUE] OpenAI: update stale max_input_tokens for gpt-5-pro #916

Description

@github-actions

Summary

The max_input_tokens for gpt-5-pro is set to 128,000 in model_list.json, but OpenAI's official documentation states a 400,000-token context window. The current value appears to have been computed as 400,000 − 272,000 (context window − max_output_tokens), but the catalog convention is max_input_tokens = context_window.

This is the same root cause as the gpt-5/gpt-5-mini/gpt-5-nano discrepancy (see issue #915) — those models have 272,000 instead of 400,000. gpt-5-pro is filed separately because it exceeds the 3-model-per-issue limit.

Affected Model

Model ID Current max_input_tokens Correct max_input_tokens max_output_tokens Line
gpt-5-pro 128,000 400,000 272,000 (correct) ~618

All other fields (format, flavor, pricing, max_output_tokens, providers) are correct and unchanged.

Convention Evidence

Model max_input_tokens max_output_tokens Sum Convention
gpt-5.5 1,050,000 128,000 1,178,000 ✅ max_input = context_window
gpt-5.4-mini 400,000 128,000 528,000 ✅ max_input = context_window
claude-sonnet-5 1,000,000 128,000 1,128,000 ✅ max_input = context_window
gpt-5-pro 128,000 272,000 400,000 ❌ = context_window − max_output

The catalog stores independent maximums for input and output; their sum is allowed to exceed the context window. The implicit constraint (input + output ≤ context_window) is not enforced through the max_input_tokens field.

Verification Checklist

Check Status Detail
Cross-source Context window confirmed on gpt-5-pro model page — "400,000 context window", "272,000 max output tokens"
Already fixed Entry currently shows max_input_tokens: 128000 in model_list.json
ID format Existing entry — no ID change
Duplicate check No open issue covers gpt-5-pro max_input_tokens. Issue #915 covers the sibling models (gpt-5, gpt-5-mini, gpt-5-nano)

Local Files Inspected

  • packages/proxy/schema/model_list.json — confirmed current value at line ~618
  • packages/proxy/scripts/sync_models.tsgpt-5-pro is not in SYNC_PRESERVED_FIELDS
{
  "kind": "stale_metadata",
  "provider": "openai",
  "models": ["gpt-5-pro"],
  "status": "active",
  "model_specs": {
    "gpt-5-pro": {
      "format": "openai",
      "flavor": "chat",
      "multimodal": true,
      "input_cost_per_mil_tokens": 15,
      "output_cost_per_mil_tokens": 120,
      "displayName": "GPT-5 Pro",
      "reasoning": true,
      "max_input_tokens": 400000,
      "max_output_tokens": 272000,
      "available_providers": ["openai", "azure"]
    }
  },
  "source_urls": [
    "https://developers.openai.com/api/docs/models/gpt-5-pro"
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions