Skip to content

feat: add missing OpenAI GPT model multipliers#24430

Merged
pelikhan merged 2 commits intomainfrom
copilot/fill-model-usage-json
Apr 4, 2026
Merged

feat: add missing OpenAI GPT model multipliers#24430
pelikhan merged 2 commits intomainfrom
copilot/fill-model-usage-json

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 4, 2026

The model_multipliers.json files were missing entries for the GPT-5 family and several GPT-4.1 variants, leaving Effective Tokens (ET) computation without multipliers for these models.

Multiplier values are sourced from the official GitHub Copilot documentation: https://docs.github.com/en/copilot/reference/ai-models/supported-models#model-multipliers

Added models

Model Multiplier
gpt-4.1-2025-04-14 1.0
gpt-41-copilot 1.0
gpt-5 1.0
gpt-5-mini 0 (included on paid plans)
gpt-5.1 1.0
gpt-5.1-codex 1.0
gpt-5.1-codex-mini 0.33
gpt-5.1-codex-max 1.0
gpt-5.2 1.0
gpt-5.2-codex 1.0
gpt-5.3-codex 1.0
gpt-5.4 1.0
gpt-5.4-mini 0.33

Multiplier rationale

Values are taken directly from the official GitHub Copilot model multipliers table:

  • 0 — included model (no premium request cost on paid plans): gpt-5-mini
  • 0.33 — economy/small tier: gpt-5.1-codex-mini, gpt-5.4-mini
  • 1.0 — standard tier (same as reference model claude-sonnet-4.5): all other GPT-5.x models and GPT-4.1 variants

Both pkg/cli/data/model_multipliers.json and actions/setup/js/model_multipliers.json are updated identically.

@pelikhan pelikhan marked this pull request as ready for review April 4, 2026 03:37
Copilot AI review requested due to automatic review settings April 4, 2026 03:37
@pelikhan
Copy link
Copy Markdown
Collaborator

pelikhan commented Apr 4, 2026

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

Adds missing OpenAI GPT-family entries to the built-in Effective Tokens (ET) model multiplier tables so ET computation has defined multipliers for GPT‑5 family models and additional GPT‑4.1 variants.

Changes:

  • Added GPT‑4.1 snapshot + Copilot variant model keys with multiplier 1.0
  • Added GPT‑5 family (including Codex variants) model keys with multipliers 0.2, 3.0, and 5.0
  • Kept CLI and GitHub Action multiplier JSON files in sync with identical updates
Show a summary per file
File Description
pkg/cli/data/model_multipliers.json Extends embedded ET multiplier map with new GPT model entries used by the CLI ET computation.
actions/setup/js/model_multipliers.json Mirrors the same new GPT multipliers for the setup action’s ET data usage.

Copilot's findings

Tip

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

  • Files reviewed: 2/2 changed files
  • Comments generated: 0

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 4, 2026

@copilot update with multiplier info from https://docs.github.com/en/copilot/reference/ai-models/supported-models#model-multipliers

Updated in 1c320e0 using the official values from the data/tables/copilot/model-multipliers.yml source file in the GitHub docs repo.

Changes for the GPT-5 family:

  • gpt-5-mini: 0 (included/free on paid plans)
  • gpt-5.1, gpt-5.1-codex, gpt-5.1-codex-max, gpt-5.2, gpt-5.2-codex, gpt-5.3-codex, gpt-5.4: 1.0
  • gpt-5.1-codex-mini, gpt-5.4-mini: 0.33

Also added the missing gpt-5.1, gpt-5.2, and gpt-5.4-mini entries.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • github.blog
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)
  • webcache.googleusercontent.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI requested a review from pelikhan April 4, 2026 03:50
@pelikhan pelikhan merged commit 4c20e9d into main Apr 4, 2026
@pelikhan pelikhan deleted the copilot/fill-model-usage-json branch April 4, 2026 03:51
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.

3 participants