Skip to content

feat(providers/azure): add Kimi K2.7 Code - #4081

Merged
rekram1-node merged 2 commits into
anomalyco:devfrom
DenisBY:add/azure-kimi-k2.7-code
Aug 6, 2026
Merged

feat(providers/azure): add Kimi K2.7 Code#4081
rekram1-node merged 2 commits into
anomalyco:devfrom
DenisBY:add/azure-kimi-k2.7-code

Conversation

@DenisBY

@DenisBY DenisBY commented Aug 5, 2026

Copy link
Copy Markdown

Adds Azure pricing and provider metadata for Kimi K2.7 Code.

  • Source: https://azure.microsoft.com/en-us/pricing/details/ai-foundry-models/kimi/
  • Pricing (commercial region): input $0.95, output $4.00, cache_read $0.19 per 1M tokens
  • Uses moonshotai/kimi-k2.7-code lab metadata via base_model
  • reasoning_options = [] — no caller-facing reasoning controls on the Azure endpoint; consistent with the Moonshot first-party entry
  • bun validate passes

Copilot AI lite review requested due to automatic review settings August 5, 2026 16:00
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

No actionable findings.

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

Adds an Azure provider model entry for MoonshotAI Kimi K2.7 Code to the catalog, using shared lab metadata (base_model) and Azure-specific pricing/provider request shape.

Changes:

  • Added providers/azure/models/kimi-k2.7-code.toml with base_model = "moonshotai/kimi-k2.7-code".
  • Set Azure pricing (cost.input, cost.output, cost.cache_read) from the cited Azure pricing page.
  • Configured Azure request shape (provider.shape, provider.npm, provider.api) and reasoning metadata (reasoning_options, interleaved).

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

Comment on lines +2 to +7
base_model = "moonshotai/kimi-k2.7-code"

reasoning_options = []

[interleaved]
field = "reasoning_content"
@DenisBY
DenisBY force-pushed the add/azure-kimi-k2.7-code branch from 5e6c278 to 1b17d9a Compare August 5, 2026 16:09
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Action items

  • [high] [violation] providers/azure/models/kimi-k2.7-code.toml:9 - Check: TOML table scoping / required reasoning_options when reasoning = true. Why: After [modalities], bare keys belong to that table, so reasoning_options = [] is parsed as modalities.reasoning_options, not a root field. [modalities] is schema-strict (only input/output), and the merged model still has reasoning = true from moonshotai/kimi-k2.7-code without a root reasoning_options. Action: Move all root keys (attachment, reasoning_options) above the first table header; keep only table sections after that.

@DenisBY
DenisBY force-pushed the add/azure-kimi-k2.7-code branch from 1b17d9a to 843cd8c Compare August 5, 2026 16:12
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Action items

  • [medium] [possible mistake] providers/azure/models/kimi-k2.7-code.toml:4 - Check: attachment must match non-text input support (lab base / repo convention). Why: Lab moonshotai/kimi-k2.7-code has attachment = true, and this file keeps image in [modalities].input, but overrides attachment = false. That contradicts the base model and the usual rule that non-text input ⇒ attachment = true (other k2.7-code hosts with image leave attachment inherited/true). Copying Azure Kimi k2.5/k2.6’s outlier false is likely wrong. Action: Drop attachment = false so it inherits true, or if Azure truly has no file/image attachments, remove image from modalities and keep attachment = false with a short leading-comment source.

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

No actionable findings.

@rekram1-node
rekram1-node merged commit 4708b65 into anomalyco:dev Aug 6, 2026
2 checks passed
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.

4 participants