Repository navigation
v3.38.30
🎯 Use API billing.multiplier with X-GitHub-Api-Version 2025-05-01
Changes
- Add billing interface to CopilotModel type with multiplier, is_premium, restricted_to
- Add X-Interaction-Type and OpenAI-Intent: model-access headers
- Modify getCostMultiplier() to use billing.multiplier from API when available
- Keep fallback to ID-based estimation for backward compatibility
- Now returns 39 models (vs 31) with accurate billing data
Technical Details
With the new X-GitHub-Api-Version: 2025-05-01 header, the API now returns billing.multiplier directly.
Source: microsoft/vscode-copilot-chat networking.ts
See docs/202510261800-billing-multiplier-api-discovery.md for details.