feat: add missing OpenAI GPT model multipliers#24430
Conversation
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/3f70e5a5-a7a4-44cc-880e-476173cfeef3 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot update with multiplier info from https://docs.github.com/en/copilot/reference/ai-models/supported-models#model-multipliers |
There was a problem hiding this comment.
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, and5.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
…docs Agent-Logs-Url: https://github.com/github/gh-aw/sessions/d016dd32-1f6e-459e-b6e4-e8956e9887a3 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Updated in 1c320e0 using the official values from the Changes for the GPT-5 family:
Also added the missing 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:
If you need me to access, download, or install something from one of these locations, you can either:
|
The
model_multipliers.jsonfiles 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
gpt-4.1-2025-04-14gpt-41-copilotgpt-5gpt-5-minigpt-5.1gpt-5.1-codexgpt-5.1-codex-minigpt-5.1-codex-maxgpt-5.2gpt-5.2-codexgpt-5.3-codexgpt-5.4gpt-5.4-miniMultiplier rationale
Values are taken directly from the official GitHub Copilot model multipliers table:
gpt-5-minigpt-5.1-codex-mini,gpt-5.4-miniclaude-sonnet-4.5): all other GPT-5.x models and GPT-4.1 variantsBoth
pkg/cli/data/model_multipliers.jsonandactions/setup/js/model_multipliers.jsonare updated identically.