Skip to content

[model-inventory] Add missing MAI-Code model entry and correct Copilot cache-read pricing - #52191

Merged
pelikhan merged 3 commits into
mainfrom
copilot/model-inventory-update
Aug 12, 2026
Merged

[model-inventory] Add missing MAI-Code model entry and correct Copilot cache-read pricing#52191
pelikhan merged 3 commits into
mainfrom
copilot/model-inventory-update

Conversation

Copilot AI commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Daily inventory identified one missing github-copilot model in models.json and several cache_read mismatches, including a confirmed 10x underpriced grok-4.5 cache-read value. Alias coverage was already complete, so this PR is scoped to pricing/catalog correctness only.

  • Model catalog sync (pkg/cli/data/models.json, actions/setup/js/models.json)

    • Added mai-code-1.1-flash with Copilot SDK-aligned pricing (input, output, cache_read, cache_write).
    • Kept both model inventories byte-aligned by applying the same edit to both files.
  • Pricing corrections (github-copilot entries)

    • Corrected cache_read for:
      • grok-4.5 (5e-085e-07)
      • gpt-5.4-mini (7.5e-087e-08)
      • gpt-5.3-codex (1.75e-071.7e-07)
      • gpt-5-mini (2.5000000000000002e-082e-08)
      • mai-code-1-flash-picker (7.5e-087e-08)
  • Regression coverage (pkg/cli/model_costs_test.go)

    • Added targeted assertions for:
      • mai-code-1.1-flash pricing lookup (including cache_write)
      • grok-4.5 pricing lookup with corrected cache-read value
"mai-code-1.1-flash": {
  "cost": {
    "input": "2e-07",
    "output": "1.2e-06",
    "cache_read": "2e-08",
    "cache_write": "2.5e-07"
  },
  "provider_type": "openai",
  "wire_api": "responses"
}

Copilot AI and others added 2 commits August 12, 2026 01:13
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 [WIP] Update model alias inventory for missing pricing entry [model-inventory] Add missing MAI-Code model entry and correct Copilot cache-read pricing Aug 12, 2026
Copilot AI requested a review from pelikhan August 12, 2026 01:16
@pelikhan
pelikhan marked this pull request as ready for review August 12, 2026 01:16
Copilot AI balanced review requested due to automatic review settings August 12, 2026 01:16
@pelikhan
pelikhan merged commit e03815f into main Aug 12, 2026
@pelikhan
pelikhan deleted the copilot/model-inventory-update branch August 12, 2026 01:17
@github-actions

Copy link
Copy Markdown
Contributor

🎉 Great work on the model inventory update, Copilot! This PR is well-executed and looks ready for review.

Your approach to keep both models.json files in sync while correcting the 10x underpriced grok-4.5 cache-read value and adding the missing mai-code-1.1-flash model entry is exactly what's needed. The addition of targeted regression tests for the new model and the corrected pricing gives confidence that these catalog changes won't regress.

What's working well:

  • Clear scope (pricing/catalog correctness only)
  • Both model inventory files kept byte-aligned
  • Regression test coverage for both the new model and the corrected pricing
  • Detailed PR body explaining each change
  • References issue [model-inventory] Model alias inventory update - 2026-08-12 #52187 showing integration with the daily inventory process

This PR is ready for maintainer review and merge.

Generated by ✅ Contribution Check · auto · 51.1 AIC · ⌖ 2.96 AIC · ⊞ 8.8K ·

Copilot AI 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

Synchronizes Copilot model pricing catalogs with the latest inventory.

Changes:

  • Adds mai-code-1.1-flash pricing.
  • Corrects five cache-read prices.
  • Adds regression tests for MAI-Code and Grok pricing.
Show a summary per file
File Description
pkg/cli/model_costs_test.go Tests new and corrected pricing.
pkg/cli/data/models.json Updates the CLI pricing catalog.
actions/setup/js/models.json Mirrors the catalog updates.

Review details

Tip

Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 3/3 changed files
  • Comments generated: 0
  • Review effort level: Balanced

@github-actions github-actions Bot mentioned this pull request Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[model-inventory] Model alias inventory update - 2026-08-12

3 participants