Uh oh!
There was an error while loading. Please reload this page.
Add Copilot SDK billing inventory job - #48619
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
pelikhan
commented
Jul 28, 2026
@copilot |
Hey
The PR looks ready for review and merge once these dependency considerations are confirmed by a maintainer.
|
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Adds Copilot SDK billing metadata to the daily model inventory.
Changes:
- Adds an SDK model collector authenticated with
COPILOT_GITHUB_TOKEN. - Prioritizes SDK billing data during pricing validation.
- Recompiles the generated workflow.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/daily-model-inventory.md | Adds collection and analysis instructions. |
.github/workflows/daily-model-inventory.lock.yml | Includes the compiled collector job. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 2
- Review effort level: Medium
| await client.start(); | ||
| try { | ||
| const models = await client.listModels(); | ||
| process.stdout.write(`${JSON.stringify({ provider: "copilot-sdk", models }, null, 2)}\n`); |
| 2. **Copilot reflect data** — use the `copilot` endpoint's `models` list from | ||
| `/tmp/gh-aw/agent/model-inventory/reflect.json`. For each model, use | ||
| the `billing.multiplier` field to cross-check the SDK multiplier. Compare against the |
🎉 This pull request is included in a new release. Release: |
The daily model inventory needs Copilot billing metadata sourced through the Copilot CLI SDK using
COPILOT_GITHUB_TOKEN.Changes
@github/copilot-sdk@1.0.8, including its bundled Copilot CLI.CopilotClientwithCOPILOT_GITHUB_TOKEN.listModels().copilot-sdk-modelsfor inclusion in the combined inventory.daily-model-inventory.lock.yml.