Files
Aiden Cline d6f89810f3 feat(github-copilot): add MAI Code 2 and MAI Code 2 Flash (#14017)
* feat(github-copilot): add MAI Code 2 and MAI Code 2 Flash

* mai-code-2: peer-verified effort set on Copilot; note Microsoft's name styling

* mai-code-2: model card effort set; drop the date multiplier the sync would double

* mai-code-2: note where the Copilot effort and structured output come from
2026-11-18 21:58:33 +00:00

23 lines
1.0 KiB
TOML

# Pricing: https://docs.github.com/en/copilot/reference/copilot-billing/models-and-pricing (accessed 2026-11-18): $0.05 input / $0.005 cached / $0.25 output
# per 1M until 2027-05-17 (launch promo), then double. No date multiplier: the Copilot sync owns these prices and will pick up the new rates from GitHub's table.
# Effort: low|medium|high|xhigh|max, the model card's set. Copilot's other entries carry their vendor's full effort set, so this follows the card.
# VS Code's Copilot extension reads effort levels from Copilot's per-model metadata and hardcodes none per model.
# The API layout and structured_output follow MAI-Code-1.1-Flash on this host.
schema = 2
base_model = "microsoft/mai-code-2-flash"
[capabilities]
reasoning = { supported = true, effort = ["low", "medium", "high", "xhigh", "max"] }
structured_output = true
[api.responses]
sdk = { aisdk = "@ai-sdk/openai", opencodeai = "@opencode/ai/providers/openai/responses" }
[cost.text.input]
price = 0.05
cache = { read = 0.005 }
[cost.text.output]
price = 0.25