Skip to content

Update GPT pricing catalog and default detection/evals model routing via aliases - #49586

Merged
pelikhan merged 4 commits into
mainfrom
copilot/update-model-pricing-table
Aug 1, 2026
Merged

Update GPT pricing catalog and default detection/evals model routing via aliases#49586
pelikhan merged 4 commits into
mainfrom
copilot/update-model-pricing-table

Conversation

Copilot AI commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

This PR updates GPT pricing entries in the GitHub/OpenAI model catalog and introduces explicit detection / evals aliases for small-model routing. Detection and evals now default to these aliases when no model is configured, instead of relying on implicit fallback behavior.

  • Pricing catalog updates (GitHub/OpenAI)

    • Refreshed GPT pricing values in models.json for both runtime copies:
      • pkg/cli/data/models.json
      • actions/setup/js/models.json
    • Updated GPT-5.6 cache-read rates and added missing OpenAI GPT-5.6 entries in the OpenAI provider section so pricing is consistent across providers/catalog consumers.
  • New built-in model aliases

    • Added alias mappings in pkg/workflow/data/model_aliases.json:
      • detection: ["small"]
      • evals: ["small"]
    • Keeps job-level model intent explicit while still resolving through existing small-model policy.
  • Default model behavior changes

    • Threat detection now defaults to "detection" when no model is set (both inline and external detection paths).
    • Evals now defaults to "evals" when no model is set (replacing the hardcoded "small" fallback).
    • Enterprise overrides (GH_AW_DEFAULT_DETECTION_MODEL, GH_AW_DEFAULT_EVALS_MODEL) still take precedence.
  • Compiler fixture/test alignment

    • Updated alias/default expectations and wasm golden outputs to match the new default resolution path.
# before (implicit / hardcoded small fallback)
evals:
  questions:
    - id: builds
      question: Does it build?

safe-outputs:
  threat-detection: true

# after (same config, explicit alias-backed defaults)
# evals model resolves to: "evals" -> "small"
# detection model resolves to: "detection" -> "small"


✨ PR Review Safe Output Test - Run 30715626945

Warning

Firewall blocked 6 domains

The following domains were blocked by the firewall during workflow execution:

  • accounts.google.com
  • android.clients.google.com
  • clients2.google.com
  • contentautofill.googleapis.com
  • safebrowsingohttpgateway.googleapis.com
  • www.google.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "accounts.google.com"
    - "android.clients.google.com"
    - "clients2.google.com"
    - "contentautofill.googleapis.com"
    - "safebrowsingohttpgateway.googleapis.com"
    - "www.google.com"

See Network Configuration for more information.

💥 [THE END] — Illustrated by Smoke Claude · sonnet46 · 103.7 AIC · ⌖ 10 AIC · ⊞ 6.3K ·
Comment /smoke-claude to run again

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title Update GPT pricing and add detection/evals model defaults Update GPT pricing catalog and default detection/evals model routing via aliases Aug 1, 2026
Copilot AI requested a review from pelikhan August 1, 2026 13:48
@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

PR Triage

  • Category: chore
  • Risk: medium
  • Priority: low
  • Score: 43/100 (Impact25/Urgency10/Quality8)
  • Recommended action: defer

Draft; pricing catalog + model routing alias changes, moderate behavioral impact, still draft.

Generated by 🔧 PR Triage Agent · auto · 73.4 AIC · ⌖ 10.1 AIC · ⊞ 8K ·

@pelikhan
pelikhan marked this pull request as ready for review August 1, 2026 19:24
Copilot AI review requested due to automatic review settings August 1, 2026 19:24

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

Updates model pricing and routes default detection/evaluation workloads through dedicated small-model aliases.

Changes:

  • Refreshes GPT-5.6 pricing in both catalogs.
  • Adds detection and evals aliases backed by small.
  • Updates compiler defaults, tests, and generated fixtures.
Show a summary per file
File Description
pkg/workflow/threat_detection_test.go Updates inline detection expectations.
pkg/workflow/threat_detection_inline_engine.go Adds the detection fallback.
pkg/workflow/threat_detection_external.go Adds the external-detector fallback.
pkg/workflow/evals_steps.go Defaults evaluations to evals.
pkg/workflow/evals_config.go Documents the new default.
pkg/workflow/data/model_aliases.json Defines detection and evals aliases.
pkg/workflow/model_aliases_test.go Verifies the aliases.
pkg/cli/data/models.json Updates the CLI pricing catalog.
actions/setup/js/models.json Updates the setup-action pricing catalog.
pkg/workflow/testdata/TestWasmGolden_CompileFixtures/with-imports.golden Refreshes generated version metadata.
pkg/workflow/testdata/TestWasmGolden_CompileFixtures/smoke-copilot.golden Refreshes generated version metadata.
pkg/workflow/testdata/TestWasmGolden_CompileFixtures/playwright-cli-mode.golden Refreshes generated version metadata.
pkg/workflow/testdata/TestWasmGolden_CompileFixtures/basic-copilot.golden Refreshes generated version metadata.
pkg/workflow/testdata/TestWasmGolden_AllEngines/copilot.golden Refreshes generated version metadata.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

// Model is the default LLM model to use for evaluations. Use a model alias such as
// "small" or a full model ID. Per-question Model fields override this value.
// When empty, the compiler default ("small") is used.
// When empty, the compiler default ("evals") is used.
Comment on lines 437 to 439
if model == "" {
model = "small"
model = "evals"
}
Comment on lines +296 to +298
if resolvedDetectionModel == "" {
resolvedDetectionModel = "detection"
}
@pelikhan

pelikhan commented Aug 1, 2026

Copy link
Copy Markdown
Collaborator

@copilot merge main and recompile

Copilot AI and others added 2 commits August 1, 2026 19:40
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
…pricing-table

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

Copilot AI commented Aug 1, 2026

Copy link
Copy Markdown
Contributor Author

@copilot merge main and recompile

Done — merged main (f84e968) and recompiled all 266 workflows successfully (266 succeeded, 0 errors).

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Smoke Copilot Auto completed successfully!

@github-actions github-actions Bot removed the smoke label Aug 1, 2026
@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

🚀 Smoke Gemini MISSION COMPLETE! Gemini has spoken. ✨

Warning

threat detection engine error
The threat detection engine encountered an error and could not complete analysis. This is a tooling failure, not a security finding.

Details

The threat detection results could not be parsed.

Review the workflow run logs for details.

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

🚀 Smoke Pi MISSION COMPLETE! Pi delivered. 🥧

No PR comment/label action taken: workflow lacks pull_request triggering context; issue created with smoke test results.

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟

Warning

threat detection engine error
The threat detection engine encountered an error and could not complete analysis. This is a tooling failure, not a security finding.

Details

The threat detection results could not be parsed.

Review the workflow run logs for details.

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

✅ All tools validated successfully! Agent Container Smoke Test confirms agent container is ready.

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

📰 BREAKING: Smoke Copilot - AOAI (Entra) is now investigating this pull request. Sources say the story is developing...

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Smoke Copilot Small completed successfully!

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Smoke OTEL completed successfully!

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

📰 BREAKING: Smoke Copilot - AOAI (apikey) is now investigating this pull request. Sources say the story is developing...

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Smoke Copilot MAI completed successfully!

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

📰 BREAKING: Smoke Copilot is now investigating this pull request. Sources say the story is developing...

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Small names, clear routes now—
detection, evals aliased,
pricing tuned in sync.

Inspired by the PR's new detection/evals aliases replacing hardcoded fallbacks, alongside refreshed GPT pricing data.

Generated by 🌸 Smoke Copilot Auto for #49586 · auto · 10.5 AIC · ⌖ 4.6 AIC · ⊞ 5.9K ·
Add label smoke to run again

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Warning

threat detection engine error
The threat detection engine encountered an error and could not complete analysis. This is a tooling failure, not a security finding.

Details

The threat detection results could not be parsed.

Review the workflow run logs for details.

Smoke Test Results

  1. GitHub MCP Testing: ✅
  2. Web Fetch Testing: ✅
  3. File Writing Testing: ✅
  4. Bash Tool Testing: ✅
  5. Build gh-aw: ❌

Overall Status: FAIL

Smoke Gemini — Powered by Gemini · agent · 11.1 AIC · ⊞ 9.4K ·
Comment /smoke-gemini to run again

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Agent Container Tool Check

Tool Status Version
bash 5.2.21
sh available
git 2.54.0
jq 1.7
yq 4.53.3
curl 8.5.0
gh 2.96.0
node 24.18.0
python3 3.11.15
go 1.24.13
java 21.0.11 (Temurin)
dotnet 10.0.302

Result: 12/12 tools available ✅

Overall status: PASS

🔧 Tool validation by Agent Container Smoke Test · auto · 17.2 AIC · ⌖ 3.58 AIC · ⊞ 8.2K ·
Comment /smoke-test-tools to run again

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Smoke test summary:

Generated by ⚡ Smoke Copilot MAI · mai10 · 3.41 AIC · ⌖ 1.4 AIC · ⊞ 19.7K ·
Comment /smoke-copilot-mai to run again
Add label smoke to run again

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Commit pushed: 7b78dd2

Generated by Changeset Generator · gpt54 · 5.35 AIC · ⌖ 14.1 AIC · ⊞ 12.3K

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Warning

threat detection engine error
The threat detection engine encountered an error and could not complete analysis. This is a tooling failure, not a security finding.

Details

The threat detection results could not be parsed.

Review the workflow run logs for details.

Comment Memory

Quiet builds hum on
GitHub lights flicker through dusk
Smoke test keeps its watch

Note

This comment is managed by comment memory.

It stores persistent context for this thread in the code block at the top of this comment.
Edit only the text inside the backtick fences; workflow metadata and the footer are regenerated automatically.

Learn more about comment memory

Warning

Firewall blocked 6 domains

The following domains were blocked by the firewall during workflow execution:

  • accounts.google.com
  • android.clients.google.com
  • clients2.google.com
  • contentautofill.googleapis.com
  • safebrowsingohttpgateway.googleapis.com
  • www.google.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "accounts.google.com"
    - "android.clients.google.com"
    - "clients2.google.com"
    - "contentautofill.googleapis.com"
    - "safebrowsingohttpgateway.googleapis.com"
    - "www.google.com"

See Network Configuration for more information.

🔮 The oracle has spoken through Smoke Codex · gpt54 · 16.3 AIC · ⊞ 11.8K ·
Comment /smoke-codex to run again

@pelikhan
pelikhan merged commit 14122b3 into main Aug 1, 2026
@pelikhan
pelikhan deleted the copilot/update-model-pricing-table branch August 1, 2026 20:02
@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Smoke Test Copilot - Results

PR: Update GPT pricing catalog and default detection/evals model routing via aliases

  1. github(gh-proxy) merged PRs: ✅
  2. mcpscripts pr query: ✅
  3. Serena find_symbol: ❌ (timeout)
  4. Playwright: ✅
  5. web-fetch: ✅
  6. file+bash: ✅
  7. discussion query+comment: ✅
  8. make build: ✅
  9. artifact upload: ✅
  10. create_discussion: ✅
  11. dispatch_workflow: ✅
  12. PR review tools: ✅
  13. comment memory: ✅
  14. file-summarizer: ❌
  15. check_run: ✅
  16. LSP TS count: ✅

Overall: FAIL

cc @pelikhan @Copilot

Warning

Firewall blocked 6 domains

The following domains were blocked by the firewall during workflow execution:

  • accounts.google.com
  • android.clients.google.com
  • clients2.google.com
  • contentautofill.googleapis.com
  • safebrowsingohttpgateway.googleapis.com
  • www.google.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "accounts.google.com"
    - "android.clients.google.com"
    - "clients2.google.com"
    - "contentautofill.googleapis.com"
    - "safebrowsingohttpgateway.googleapis.com"
    - "www.google.com"

See Network Configuration for more information.

📰 BREAKING: Report filed by Smoke Copilot · auto · 42.8 AIC · ⌖ 3.66 AIC · ⊞ 8.7K ·
Comment /smoke-copilot to run again
Add label smoke to run again

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Comment Memory

Copilot testing
autumn code review whispers
green checks bloom in light

Note

This comment is managed by comment memory.

It stores persistent context for this thread in the code block at the top of this comment.
Edit only the text inside the backtick fences; workflow metadata and the footer are regenerated automatically.

Learn more about comment memory

Warning

Firewall blocked 6 domains

The following domains were blocked by the firewall during workflow execution:

  • accounts.google.com
  • android.clients.google.com
  • clients2.google.com
  • contentautofill.googleapis.com
  • safebrowsingohttpgateway.googleapis.com
  • www.google.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "accounts.google.com"
    - "android.clients.google.com"
    - "clients2.google.com"
    - "contentautofill.googleapis.com"
    - "safebrowsingohttpgateway.googleapis.com"
    - "www.google.com"

See Network Configuration for more information.

📰 BREAKING: Report filed by Smoke Copilot · auto · 42.8 AIC · ⌖ 3.66 AIC · ⊞ 8.7K ·
Comment /smoke-copilot to run again
Add label smoke to run again

@github-actions github-actions Bot 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.

Smoke test automated review (test).

Warning

Firewall blocked 6 domains

The following domains were blocked by the firewall during workflow execution:

  • accounts.google.com
  • android.clients.google.com
  • clients2.google.com
  • contentautofill.googleapis.com
  • safebrowsingohttpgateway.googleapis.com
  • www.google.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "accounts.google.com"
    - "android.clients.google.com"
    - "clients2.google.com"
    - "contentautofill.googleapis.com"
    - "safebrowsingohttpgateway.googleapis.com"
    - "www.google.com"

See Network Configuration for more information.

📰 BREAKING: Report filed by Smoke Copilot · auto · 42.8 AIC · ⌖ 3.66 AIC · ⊞ 8.7K
Comment /smoke-copilot to run again
Add label smoke to run again

@github-actions github-actions Bot 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.

💥 Automated smoke test review - all systems nominal! Run 30715626945

Warning

Firewall blocked 6 domains

The following domains were blocked by the firewall during workflow execution:

  • accounts.google.com
  • android.clients.google.com
  • clients2.google.com
  • contentautofill.googleapis.com
  • safebrowsingohttpgateway.googleapis.com
  • www.google.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "accounts.google.com"
    - "android.clients.google.com"
    - "clients2.google.com"
    - "contentautofill.googleapis.com"
    - "safebrowsingohttpgateway.googleapis.com"
    - "www.google.com"

See Network Configuration for more information.

💥 [THE END] — Illustrated by Smoke Claude · sonnet46 · 103.7 AIC · ⌖ 10 AIC · ⊞ 6.3K
Comment /smoke-claude to run again

Comments that could not be inline-anchored

.changeset/patch-update-model-pricing-and-default-routing.md:5

📝 Smoke Test Review Comment #1 — Run 30715626945: The changeset description clearly captures the intent of this PR. Consider also noting the compiler fixture updates in the summary for full traceability.

.github/workflows/ab-testing-advisor.lock.yml:840

🔍 Smoke Test Review Comment #2 — Run 30715626945: The model routing update here looks consistent with the new alias-based approach. Verify that all lock files have been recompiled consistently across all workflow variants.

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Smoke Test 30715680366: FAIL
✅ GitHub ❌ mcpscripts ❌ Serena ❌ Playwright ✅ Web-fetch ✅ File ✅ Azure ❌ Discussion ✅ Build ❌ Artifact ❌ Disc Create ❌ Dispatch ❌ PR Review ❌ Memory ❌ Sub-agent ❌ Check run

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • dc.services.visualstudio.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "dc.services.visualstudio.com"

See Network Configuration for more information.

📰 BREAKING: Report filed by Smoke Copilot - AOAI (Entra) · o40mini · 25.4 AIC · ⌖ 3.72 AIC · ⊞ 18.8K ·
Comment /smoke-copilot-aoai-entra to run again
Add label smoke to run again

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.84.3

Sign up for free to 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.

3 participants