feat: add grok-4.5 model alias and pricing - #49072
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Triage Summary
Adds grok-4.5 model alias/pricing. Still draft, small and low-risk; not urgent.
|
There was a problem hiding this comment.
Pull request overview
Adds Grok 4.5 alias resolution and pricing metadata.
Changes:
- Adds the
grokalias family. - Adds Grok 4.5 pricing to both mirrored catalogs.
- Configures OpenAI-compatible completions routing.
Show a summary per file
| File | Description |
|---|---|
pkg/workflow/data/model_aliases.json |
Adds Grok alias patterns. |
pkg/cli/data/models.json |
Adds CLI pricing metadata. |
actions/setup/js/models.json |
Mirrors runtime pricing metadata. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comments suppressed due to low confidence (2)
actions/setup/js/models.json:950
- The OpenAI-provider mirror also lacks Grok's documented 2× long-context tier above 200K tokens. As a result, runtime cost reporting for
github/grok-4.5will use base rates and undercount these requests by 50%.
"input": "2e-07",
"output": "6e-07",
"cache_read": "5e-08"
pkg/cli/data/models.json:950
- The
github/grok-4.5mirror also omits the documented 2× pricing tier above 200K tokens, so long-context usage through this provider path will be billed at half the stated rate. Please add threshold-aware pricing consistently for this entry.
"input": "2e-07",
"output": "6e-07",
"cache_read": "5e-08"
- Files reviewed: 3/3 changed files
- Comments generated: 3
- Review effort level: Medium
| "input": "2e-07", | ||
| "output": "6e-07", | ||
| "cache_read": "5e-08" |
| "input": "2e-07", | ||
| "output": "6e-07", | ||
| "cache_read": "5e-08" |
| "veo": ["google/veo*", "gemini/veo*"], | ||
| "lyria": ["google/lyria*", "gemini/lyria*", "copilot/lyria*"] | ||
| "lyria": ["google/lyria*", "gemini/lyria*", "copilot/lyria*"], | ||
| "grok": ["copilot/*grok*", "openai/*grok*"] |
|
@copilot run pr-finisher skill |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot resolve the merge conflicts on this branch. |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Done. Added
Regarding the threshold pricing feedback (2× tier above 200K tokens): neither the Go nor JavaScript cost calculators currently support token-count-based pricing tiers — all models in the catalog use flat per-token rates. Adding threshold pricing would be a new feature spanning |
…ry-update-grok-4-5 # Conflicts: # .github/workflows/daily-byok-ollama-test.lock.yml # .github/workflows/design-decision-gate.lock.yml # .github/workflows/impeccable-skills-reviewer.lock.yml # .github/workflows/issue-monster.lock.yml # .github/workflows/mattpocock-skills-reviewer.lock.yml # .github/workflows/pr-code-quality-reviewer.lock.yml # .github/workflows/pr-description-caveman.lock.yml # .github/workflows/pr-sous-chef.lock.yml Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Resolved. Merged |
|
🎉 This pull request is included in a new release. Release: |
grok-4.5(xAI via Copilot) had zero alias coverage and was absent from pricing data despite being actively served with full billing metadata.Changes
pkg/workflow/data/model_aliases.json— newgrokalias family:pkg/cli/data/models.json+actions/setup/js/models.json(kept byte-identical):grok-4.5undergithub-copilotprovidergithub/grok-4.5mirror underopenaiproviderbilling.tokenPrices: input $0.20/M, output $0.60/M, cache-read $0.05/Mprovider_type: "openai",wire_api: "completions"— consistent with other non-native Copilot-routed models (kimi, raptor-mini, gemini variants)