Skip to content

Commit 79aaeea

Browse files
authored
add kimi k2.5 and glm 4.7 (#5548)
1 parent c9d6f73 commit 79aaeea

File tree

7 files changed

+689
-9
lines changed

7 files changed

+689
-9
lines changed

packages/__tests__/cost/__snapshots__/registrySnapshots.test.ts.snap

Lines changed: 247 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3540,6 +3540,89 @@ exports[`Registry Snapshots endpoint configurations snapshot 1`] = `
35403540
],
35413541
},
35423542
},
3543+
"moonshotai/kimi-k2.5": {
3544+
"kimi-k2.5:fireworks": {
3545+
"context": 262144,
3546+
"crossRegion": false,
3547+
"maxTokens": 262144,
3548+
"modelId": "accounts/fireworks/models/kimi-k2p5",
3549+
"parameters": [
3550+
"frequency_penalty",
3551+
"logit_bias",
3552+
"logprobs",
3553+
"max_tokens",
3554+
"presence_penalty",
3555+
"repetition_penalty",
3556+
"response_format",
3557+
"stop",
3558+
"structured_outputs",
3559+
"temperature",
3560+
"tool_choice",
3561+
"tools",
3562+
"top_k",
3563+
"top_logprobs",
3564+
"top_p",
3565+
],
3566+
"provider": "fireworks",
3567+
"ptbEnabled": true,
3568+
"regions": [
3569+
"*",
3570+
],
3571+
},
3572+
"kimi-k2.5:novita": {
3573+
"context": 262144,
3574+
"crossRegion": false,
3575+
"maxTokens": 262144,
3576+
"modelId": "moonshotai/kimi-k2.5",
3577+
"parameters": [
3578+
"frequency_penalty",
3579+
"functions",
3580+
"logit_bias",
3581+
"max_tokens",
3582+
"min_p",
3583+
"presence_penalty",
3584+
"repetition_penalty",
3585+
"response_format",
3586+
"seed",
3587+
"stop",
3588+
"structured_outputs",
3589+
"temperature",
3590+
"tool_choice",
3591+
"tools",
3592+
"top_k",
3593+
],
3594+
"provider": "novita",
3595+
"ptbEnabled": true,
3596+
"regions": [
3597+
"*",
3598+
],
3599+
},
3600+
"kimi-k2.5:openrouter": {
3601+
"context": 262144,
3602+
"crossRegion": false,
3603+
"maxTokens": 262144,
3604+
"modelId": "moonshotai/kimi-k2.5",
3605+
"parameters": [
3606+
"frequency_penalty",
3607+
"logprobs",
3608+
"max_tokens",
3609+
"presence_penalty",
3610+
"response_format",
3611+
"seed",
3612+
"stop",
3613+
"temperature",
3614+
"tool_choice",
3615+
"tools",
3616+
"top_logprobs",
3617+
"top_p",
3618+
],
3619+
"provider": "openrouter",
3620+
"ptbEnabled": true,
3621+
"regions": [
3622+
"*",
3623+
],
3624+
},
3625+
},
35433626
"openai/gpt-4.1": {
35443627
"gpt-4.1-mini:azure": {
35453628
"context": 1047576,
@@ -6396,6 +6479,96 @@ exports[`Registry Snapshots endpoint configurations snapshot 1`] = `
63966479
"*",
63976480
],
63986481
},
6482+
"glm-4.7:canopywave": {
6483+
"context": 198000,
6484+
"crossRegion": false,
6485+
"maxTokens": 131072,
6486+
"modelId": "zai/glm-4.7",
6487+
"parameters": [
6488+
"frequency_penalty",
6489+
"functions",
6490+
"logit_bias",
6491+
"max_tokens",
6492+
"min_p",
6493+
"presence_penalty",
6494+
"reasoning",
6495+
"repetition_penalty",
6496+
"response_format",
6497+
"seed",
6498+
"stop",
6499+
"structured_outputs",
6500+
"temperature",
6501+
"tool_choice",
6502+
"tools",
6503+
"top_k",
6504+
"top_p",
6505+
],
6506+
"provider": "canopywave",
6507+
"ptbEnabled": true,
6508+
"regions": [
6509+
"*",
6510+
],
6511+
},
6512+
"glm-4.7:fireworks": {
6513+
"context": 198000,
6514+
"crossRegion": false,
6515+
"maxTokens": 131072,
6516+
"modelId": "accounts/fireworks/models/glm-4p7",
6517+
"parameters": [
6518+
"frequency_penalty",
6519+
"functions",
6520+
"logit_bias",
6521+
"max_tokens",
6522+
"min_p",
6523+
"presence_penalty",
6524+
"reasoning",
6525+
"repetition_penalty",
6526+
"response_format",
6527+
"seed",
6528+
"stop",
6529+
"structured_outputs",
6530+
"temperature",
6531+
"tool_choice",
6532+
"tools",
6533+
"top_k",
6534+
"top_p",
6535+
],
6536+
"provider": "fireworks",
6537+
"ptbEnabled": true,
6538+
"regions": [
6539+
"*",
6540+
],
6541+
},
6542+
"glm-4.7:novita": {
6543+
"context": 204800,
6544+
"crossRegion": false,
6545+
"maxTokens": 131072,
6546+
"modelId": "zai-org/glm-4.7",
6547+
"parameters": [
6548+
"frequency_penalty",
6549+
"functions",
6550+
"logit_bias",
6551+
"max_tokens",
6552+
"min_p",
6553+
"presence_penalty",
6554+
"reasoning",
6555+
"repetition_penalty",
6556+
"response_format",
6557+
"seed",
6558+
"stop",
6559+
"structured_outputs",
6560+
"temperature",
6561+
"tool_choice",
6562+
"tools",
6563+
"top_k",
6564+
"top_p",
6565+
],
6566+
"provider": "novita",
6567+
"ptbEnabled": true,
6568+
"regions": [
6569+
"*",
6570+
],
6571+
},
63996572
},
64006573
}
64016574
`;
@@ -6623,6 +6796,11 @@ exports[`Registry Snapshots model coverage snapshot 1`] = `
66236796
"openrouter",
66246797
"openrouter",
66256798
],
6799+
"moonshotai/kimi-k2.5": [
6800+
"fireworks",
6801+
"novita",
6802+
"openrouter",
6803+
],
66266804
"openai/gpt-4.1": [
66276805
"azure",
66286806
"azure",
@@ -6785,6 +6963,9 @@ exports[`Registry Snapshots model coverage snapshot 1`] = `
67856963
],
67866964
"zai/glm-4": [
67876965
"canopywave",
6966+
"canopywave",
6967+
"fireworks",
6968+
"novita",
67886969
"novita",
67896970
],
67906971
}
@@ -8229,6 +8410,32 @@ exports[`Registry Snapshots pricing snapshot 1`] = `
82298410
},
82308411
],
82318412
},
8413+
"moonshotai/kimi-k2.5": {
8414+
"fireworks": [
8415+
{
8416+
"cacheMultipliers": {
8417+
"cachedInput": 0.5,
8418+
},
8419+
"input": 0.0000012,
8420+
"output": 0.0000012,
8421+
"threshold": 0,
8422+
},
8423+
],
8424+
"novita": [
8425+
{
8426+
"input": 6e-7,
8427+
"output": 0.000003,
8428+
"threshold": 0,
8429+
},
8430+
],
8431+
"openrouter": [
8432+
{
8433+
"input": 0.000001266,
8434+
"output": 0.000003165,
8435+
"threshold": 0,
8436+
},
8437+
],
8438+
},
82328439
"openai/gpt-4.1": {
82338440
"azure": [
82348441
{
@@ -8643,13 +8850,26 @@ exports[`Registry Snapshots pricing snapshot 1`] = `
86438850
"zai/glm-4": {
86448851
"canopywave": [
86458852
{
8646-
"input": 4.5e-7,
8647-
"output": 0.0000015,
8853+
"input": 4.3e-7,
8854+
"output": 0.00000175,
8855+
"threshold": 0,
8856+
},
8857+
],
8858+
"fireworks": [
8859+
{
8860+
"cacheMultipliers": {
8861+
"cachedInput": 0.5,
8862+
},
8863+
"input": 6e-7,
8864+
"output": 0.0000022,
86488865
"threshold": 0,
86498866
},
86508867
],
86518868
"novita": [
86528869
{
8870+
"cacheMultipliers": {
8871+
"cachedInput": 0.183,
8872+
},
86538873
"input": 6e-7,
86548874
"output": 0.0000022,
86558875
"threshold": 0,
@@ -8932,6 +9152,14 @@ exports[`Registry Snapshots verify registry state 1`] = `
89329152
"novita",
89339153
],
89349154
},
9155+
{
9156+
"model": "glm-4.7",
9157+
"providers": [
9158+
"canopywave",
9159+
"fireworks",
9160+
"novita",
9161+
],
9162+
},
89359163
{
89369164
"model": "gpt-4.1",
89379165
"providers": [
@@ -9251,6 +9479,14 @@ exports[`Registry Snapshots verify registry state 1`] = `
92519479
"novita",
92529480
],
92539481
},
9482+
{
9483+
"model": "kimi-k2.5",
9484+
"providers": [
9485+
"fireworks",
9486+
"novita",
9487+
"openrouter",
9488+
],
9489+
},
92549490
{
92559491
"model": "llama-3.1-8b-instant",
92569492
"providers": [
@@ -9487,7 +9723,7 @@ exports[`Registry Snapshots verify registry state 1`] = `
94879723
"provider": "bedrock",
94889724
},
94899725
{
9490-
"modelCount": 4,
9726+
"modelCount": 5,
94919727
"provider": "canopywave",
94929728
},
94939729
{
@@ -9507,7 +9743,7 @@ exports[`Registry Snapshots verify registry state 1`] = `
95079743
"provider": "deepseek",
95089744
},
95099745
{
9510-
"modelCount": 2,
9746+
"modelCount": 4,
95119747
"provider": "fireworks",
95129748
},
95139749
{
@@ -9531,15 +9767,15 @@ exports[`Registry Snapshots verify registry state 1`] = `
95319767
"provider": "nebius",
95329768
},
95339769
{
9534-
"modelCount": 20,
9770+
"modelCount": 22,
95359771
"provider": "novita",
95369772
},
95379773
{
95389774
"modelCount": 31,
95399775
"provider": "openai",
95409776
},
95419777
{
9542-
"modelCount": 66,
9778+
"modelCount": 67,
95439779
"provider": "openrouter",
95449780
},
95459781
{
@@ -9587,6 +9823,7 @@ exports[`Registry Snapshots verify registry state 1`] = `
95879823
"gemma-3-12b-it",
95889824
"gemma2-9b-it",
95899825
"glm-4.6",
9826+
"glm-4.7",
95909827
"gpt-4.1",
95919828
"gpt-4.1-mini",
95929829
"gpt-4.1-nano",
@@ -9624,6 +9861,7 @@ exports[`Registry Snapshots verify registry state 1`] = `
96249861
"kimi-k2-0711",
96259862
"kimi-k2-0905",
96269863
"kimi-k2-thinking",
9864+
"kimi-k2.5",
96279865
"llama-3.1-8b-instant",
96289866
"llama-3.1-8b-instruct",
96299867
"llama-3.1-8b-instruct-turbo",
@@ -9666,9 +9904,9 @@ exports[`Registry Snapshots verify registry state 1`] = `
96669904
"claude-3.5-haiku:anthropic:*",
96679905
],
96689906
"totalArchivedConfigs": 0,
9669-
"totalEndpoints": 291,
9670-
"totalModelProviderConfigs": 291,
9671-
"totalModelsWithPtb": 100,
9907+
"totalEndpoints": 297,
9908+
"totalModelProviderConfigs": 297,
9909+
"totalModelsWithPtb": 102,
96729910
"totalProviders": 21,
96739911
}
96749912
`;

packages/cost/models/authors/moonshotai/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,20 @@ import type { ModelConfig, ModelProviderConfig } from "../../types";
77

88
// Import models
99
import { models as kimiK2Models } from "./kimi-k2/models";
10+
import { models as kimiK25Models } from "./kimi-k2.5/models";
1011

1112
// Import endpoints
1213
import { endpoints as kimiK2Endpoints } from "./kimi-k2/endpoints";
14+
import { endpoints as kimiK25Endpoints } from "./kimi-k2.5/endpoints";
1315

1416
// Aggregate models
1517
export const moonshotaiModels = {
1618
...kimiK2Models,
19+
...kimiK25Models,
1720
} satisfies Record<string, ModelConfig>;
1821

1922
// Aggregate endpoints
2023
export const moonshotaiEndpointConfig = {
2124
...kimiK2Endpoints,
25+
...kimiK25Endpoints,
2226
} satisfies Record<string, ModelProviderConfig>;

0 commit comments

Comments
 (0)