Remove deprecated Copilot model aliases from built-in alias and multiplier registries#35786
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
Remove deprecated Copilot model aliases
Remove deprecated Copilot model aliases from built-in alias and multiplier registries
May 29, 2026
Copilot created this pull request from a session on behalf of
pelikhan
May 29, 2026 21:19
View session
Collaborator
|
@copilot update the agentic workflow model multiplier update to keep ignoring these models. make recompile. |
Contributor
There was a problem hiding this comment.
Pull request overview
Removes deprecated Copilot model aliases (gpt-4o, gpt-4o-mini, gpt-4.1, gpt-5.4-nano) from the built-in alias and multiplier registries, updates tests with negative-assertion guardrails, and refreshes generated docs/golden fixtures.
Changes:
- Drop
gpt-4.1frommodel_aliases.json(and updated alias-family expectations + aNotContainsassertion in tests). - Drop
gpt-4o,gpt-4o-mini,gpt-4.1,gpt-5.4-nanofrom bothpkg/cli/data/model_multipliers.jsonandactions/setup/js/model_multipliers.json, with a new test (TestModelMultipliersRemovedCopilotAliases) guarding regression. - Regenerate
docs/reference/model-tables.mdand refresh affected wasm golden fixtures to reflect the smaller alias/multiplier surface.
Show a summary per file
| File | Description |
|---|---|
| pkg/workflow/data/model_aliases.json | Remove deprecated gpt-4.1 builtin alias |
| pkg/workflow/model_aliases.go | Doc comment updated to drop gpt-4.1 from the listed families |
| pkg/workflow/model_aliases_test.go | Adjust family lists; add negative assertion for gpt-4.1 |
| pkg/cli/data/model_multipliers.json | Remove deprecated multiplier keys |
| actions/setup/js/model_multipliers.json | Mirror multiplier removals for setup-action source |
| pkg/cli/effective_tokens_test.go | Drop removed gpt-5.4-nano assertion; add NotContains regression test |
| docs/src/content/docs/reference/model-tables.md | Regenerated tables without removed entries |
| pkg/workflow/testdata/TestWasmGolden_/.golden | Refresh emitted AWF config to drop gpt-4.1 from apiProxy.models |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 16/16 changed files
- Comments generated: 0
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Contributor
Author
Contributor
|
``
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change removes
gpt-4o-mini,gpt-4.1,gpt-4o, andgpt-5.4-nanofrom the Copilot-facing built-in model alias/multiplier surface, and adds guardrails so they are not reintroduced via routine data updates.Built-in alias map cleanup
gpt-4.1alias from/home/runner/work/gh-aw/gh-aw/pkg/workflow/data/model_aliases.json./home/runner/work/gh-aw/gh-aw/pkg/workflow/model_aliases_test.goto reflect the removed key.Model multiplier registry cleanup
gpt-4o-mini,gpt-4.1,gpt-4o, andgpt-5.4-nanofrom:/home/runner/work/gh-aw/gh-aw/pkg/cli/data/model_multipliers.json/home/runner/work/gh-aw/gh-aw/actions/setup/js/model_multipliers.jsonRegression prevention
/home/runner/work/gh-aw/gh-aw/pkg/cli/effective_tokens_test.goto ensure the removed model IDs stay absent.Generated/docs alignment
/home/runner/work/gh-aw/gh-aw/docs/src/content/docs/reference/model-tables.md.{ "aliases": { "gpt-4.1": ["copilot/gpt-4.1*", "openai/gpt-4.1*"] }, "multipliers": { "gpt-4o": 0.33, "gpt-4o-mini": 0.33, "gpt-4.1": 1.0, "gpt-5.4-nano": 6.0 } }After this PR, those entries are intentionally absent from built-in alias/multiplier data.