Conversation
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/79109956-73d6-4e40-8ff3-9240ab225f6d Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
gpt-4.1 builtin model alias
| // - "large" → sonnet, gpt-5, gemini-pro | ||
| // - "auto" → large (convenience alias for the default capable tier) | ||
| func BuiltinModelAliases() map[string][]string { | ||
| return map[string][]string{ |
There was a problem hiding this comment.
@copilot move models information to self contained JSON file embedded in go compiler.
🧪 Test Quality Sentinel ReportTest Quality Score: 100/100✅ Excellent test quality
Test Classification Details
AnalysisThe PR adds Test inflation ratio: 0.4:1 (2 test lines added vs 5 production lines added) — well within the 2:1 threshold. Edge case coverage: Verdict
📖 Understanding Test ClassificationsDesign Tests (High Value) verify what the system does:
Implementation Tests (Low Value) verify how the system does it:
Language SupportTests analyzed:
References: §25290024934
|
There was a problem hiding this comment.
Pull request overview
Adds a new builtin gpt-4.1 model alias so workflows can reference the GPT-4.1 family through the shared alias map and documented specification.
Changes:
- Added a new
gpt-4.1builtin alias with Copilot/OpenAI wildcard patterns in the workflow model alias map. - Extended the builtin-alias test lists to include
gpt-4.1. - Updated the model alias specification table to document the new vendor-family alias.
Show a summary per file
| File | Description |
|---|---|
pkg/workflow/model_aliases.go |
Introduces the new builtin gpt-4.1 alias entry and updates the function doc comment. |
pkg/workflow/model_aliases_test.go |
Expands alias presence/coverage checks to include gpt-4.1. |
docs/src/content/docs/reference/model-alias-specification.md |
Documents gpt-4.1 in the builtin vendor-family alias table. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 3/3 changed files
- Comments generated: 3
| "gpt-4.1": { | ||
| "copilot/gpt-4.1*", | ||
| "openai/gpt-4.1*", |
| | `sonnet` | `copilot/*sonnet*`, `anthropic/*sonnet*` | | ||
| | `haiku` | `copilot/*haiku*`, `anthropic/*haiku*` | | ||
| | `opus` | `copilot/*opus*`, `anthropic/*opus*` | | ||
| | `gpt-4.1` | `copilot/gpt-4.1*`, `openai/gpt-4.1*` | |
| "gpt-4.1": { | ||
| "copilot/gpt-4.1*", | ||
| "openai/gpt-4.1*", |
The GPT-4.1 model family (
gpt-4.1,gpt-4.1-mini,gpt-4.1-nanoand their dated variants) is live on OpenAI but had no builtin alias. Thereasoning-modelalias proposed in the inventory issue is deferred per reviewer request.Changes
pkg/workflow/model_aliases.go— New"gpt-4.1"entry inBuiltinModelAliases()withcopilot/gpt-4.1*/openai/gpt-4.1*patterns; doc comment updatedpkg/workflow/model_aliases_test.go—gpt-4.1added toexpectedFamiliesandvendorFamiliescoverage checksdocs/.../model-alias-specification.md— New row in the §9.1 vendor family alias table