Skip to content

Commit 798adbb

Browse files
Copilotpelikhan
andauthored
[WIP] Add kimi-k3 model to models.json (#51938)
* Initial plan * Add Kimi K3 model pricing Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
1 parent 9abed35 commit 798adbb

4 files changed

Lines changed: 31 additions & 0 deletions

File tree

.changeset/patch-model-inventory-2026-08-10.md

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

actions/setup/js/models.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,15 @@
530530
"provider_type": "openai",
531531
"wire_api": "completions"
532532
},
533+
"kimi-k3": {
534+
"cost": {
535+
"input": "3e-06",
536+
"output": "1.5e-05",
537+
"cache_read": "3e-07"
538+
},
539+
"provider_type": "openai",
540+
"wire_api": "completions"
541+
},
533542
"grok-4.5": {
534543
"cost": {
535544
"input": "2e-06",

pkg/cli/data/models.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,15 @@
530530
"provider_type": "openai",
531531
"wire_api": "completions"
532532
},
533+
"kimi-k3": {
534+
"cost": {
535+
"input": "3e-06",
536+
"output": "1.5e-05",
537+
"cache_read": "3e-07"
538+
},
539+
"provider_type": "openai",
540+
"wire_api": "completions"
541+
},
533542
"grok-4.5": {
534543
"cost": {
535544
"input": "2e-06",

pkg/cli/model_costs_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ func TestFindModelPricing(t *testing.T) {
1717
assert.InDelta(t, 0.000003, pricing["input"], 1e-12)
1818
}
1919

20+
func TestFindKimiK3Pricing(t *testing.T) {
21+
pricing, ok := findModelPricing("github-copilot", "kimi-k3")
22+
require.True(t, ok)
23+
assert.InDelta(t, 0.000003, pricing["input"], 1e-12)
24+
assert.InDelta(t, 0.000015, pricing["output"], 1e-12)
25+
assert.InDelta(t, 0.0000003, pricing["cache_read"], 1e-12)
26+
}
27+
2028
func TestComputeModelInferenceAIC(t *testing.T) {
2129
aic := computeModelInferenceAIC("anthropic", "claude-sonnet-4.6", 1000, 200, 400, 50, 25)
2230
assert.InDelta(t, 0.54825, aic, 1e-9)

0 commit comments

Comments
 (0)