Skip to content

feat: add grok-4.5 model alias and pricing - #49072

Merged
pelikhan merged 6 commits into
mainfrom
copilot/model-inventory-update-grok-4-5
Jul 30, 2026
Merged

feat: add grok-4.5 model alias and pricing#49072
pelikhan merged 6 commits into
mainfrom
copilot/model-inventory-update-grok-4-5

Conversation

CopilotAI commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

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 — new grok alias family:

    "grok": ["copilot/*grok*", "openai/*grok*"]
  • pkg/cli/data/models.json + actions/setup/js/models.json (kept byte-identical):

    • grok-4.5 under github-copilot provider
    • github/grok-4.5 mirror under openai provider
    • Pricing sourced from Copilot SDK billing.tokenPrices: input $0.20/M, output $0.60/M, cache-read $0.05/M
    • provider_type: "openai", wire_api: "completions" — consistent with other non-native Copilot-routed models (kimi, raptor-mini, gemini variants)

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
CopilotAI changed the title [WIP] Update model alias inventory to include grok-4.5feat: add grok-4.5 model alias and pricingJul 30, 2026
CopilotAI requested a review from pelikhanJuly 30, 2026 06:48
@github-actions

Copy link
Copy Markdown
Contributor

Triage Summary

  • Category: feature
  • Risk: low
  • Priority Score: 36/100 (impact 18 + urgency 8 + quality 10)
  • Recommended Action: defer

Adds grok-4.5 model alias/pricing. Still draft, small and low-risk; not urgent.

Generated by 🔧 PR Triage Agent · auto · 54.9 AIC · ⌖ 5.64 AIC · ⊞ 7.9K ·

@pelikhan
pelikhan marked this pull request as ready for review July 30, 2026 07:45
CopilotAI review requested due to automatic review settings July 30, 2026 07:45

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Grok 4.5 alias resolution and pricing metadata.

Changes:

  • Adds the grok alias family.
  • Adds Grok 4.5 pricing to both mirrored catalogs.
  • Configures OpenAI-compatible completions routing.
Show a summary per file
FileDescription
pkg/workflow/data/model_aliases.jsonAdds Grok alias patterns.
pkg/cli/data/models.jsonAdds CLI pricing metadata.
actions/setup/js/models.jsonMirrors 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.5 will 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.5 mirror 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

Comment on lines +535 to +537
"input": "2e-07",
"output": "6e-07",
"cache_read": "5e-08"
Comment on lines +535 to +537
"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*"]
@pelikhan

Copy link
Copy Markdown
Collaborator

@copilot run pr-finisher skill

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@pelikhan

Copy link
Copy Markdown
Collaborator

@copilot resolve the merge conflicts on this branch.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

CopilotAI commented Jul 30, 2026

Copy link
Copy Markdown
ContributorAuthor

@copilot run pr-finisher skill

Done. Added grok test coverage in TestBuiltinModelAliases (commit test: add grok alias test coverage):

  • Added grok to expectedFamilies and vendorFamilies
  • Added explicit pattern assertion: assert.Equal(t, []string{"copilot/*grok*", "openai/*grok*"}, aliases["grok"], ...)

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 model_costs.go, model_costs.cjs, and the JSON schema, which is beyond the scope of this data-entry PR. I've tracked this as a follow-up to implement tiered pricing support across the catalog.

CopilotAIand others added 2 commits July 30, 2026 08:16
…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>

CopilotAI commented Jul 30, 2026

Copy link
Copy Markdown
ContributorAuthor

@copilot resolve the merge conflicts on this branch.

Resolved. Merged origin/main, accepted main's versions for the 8 conflicting lock files (all generated; our branch doesn't touch any .md workflow sources), then ran make recompile to resync all 266 lock files with their markdown sources.

@pelikhan
pelikhan merged commit bf7e570 into mainJul 30, 2026
@pelikhan
pelikhan deleted the copilot/model-inventory-update-grok-4-5 branch July 30, 2026 08:25
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.84.1

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[model-inventory] Model alias inventory update - 2026-07-30

3 participants

@pelikhan