From 6f6049f343b9c3e1a91ee3cb36e79aef6e45ce27 Mon Sep 17 00:00:00 2001 From: Guillaume Gay Date: Mon, 29 Jun 2026 11:18:55 +0200 Subject: [PATCH] Add Moonshot Kimi For Coding subscription models --- models/moonshot/kimi-k2.6-subscription.yaml | 32 ++++++ ...kimi-k2.7-code-highspeed-subscription.yaml | 21 ++++ .../moonshot/kimi-k2.7-code-subscription.yaml | 21 ++++ packages/modelparams/src/generated/data.ts | 99 +++++++++++++++++++ .../modelparams/src/generated/defaults.ts | 10 ++ .../modelparams/src/generated/model-ids.ts | 3 + .../modelparams/src/generated/params-by-id.ts | 13 +++ 7 files changed, 199 insertions(+) create mode 100644 models/moonshot/kimi-k2.6-subscription.yaml create mode 100644 models/moonshot/kimi-k2.7-code-highspeed-subscription.yaml create mode 100644 models/moonshot/kimi-k2.7-code-subscription.yaml diff --git a/models/moonshot/kimi-k2.6-subscription.yaml b/models/moonshot/kimi-k2.6-subscription.yaml new file mode 100644 index 0000000..0a407fe --- /dev/null +++ b/models/moonshot/kimi-k2.6-subscription.yaml @@ -0,0 +1,32 @@ +# yaml-language-server: $schema=https://modelparams.dev/api/v1/schema.json +provider: moonshot +authType: subscription +model: kimi-k2.6 +params: + - path: max_completion_tokens + type: integer + label: Max tokens + description: Maximum number of tokens to generate in the chat completion. + range: + min: 1 + group: generation_length + - path: thinking.type + type: enum + label: Thinking mode + description: >- + Controls whether Kimi reasons step by step before answering. Thinking is enabled by default; + set disabled to respond directly. + default: enabled + values: + - enabled + - disabled + group: reasoning + - path: response_format.type + type: enum + label: Response format + description: Forces the response into plain text or a JSON object. + default: text + values: + - text + - json_object + group: output_format diff --git a/models/moonshot/kimi-k2.7-code-highspeed-subscription.yaml b/models/moonshot/kimi-k2.7-code-highspeed-subscription.yaml new file mode 100644 index 0000000..4e0ea36 --- /dev/null +++ b/models/moonshot/kimi-k2.7-code-highspeed-subscription.yaml @@ -0,0 +1,21 @@ +# yaml-language-server: $schema=https://modelparams.dev/api/v1/schema.json +provider: moonshot +authType: subscription +model: kimi-k2.7-code-highspeed +params: + - path: max_completion_tokens + type: integer + label: Max tokens + description: Maximum number of tokens to generate in the chat completion, covering both thinking and the final answer. + range: + min: 1 + group: generation_length + - path: response_format.type + type: enum + label: Response format + description: Forces the response into plain text or a JSON object. + default: text + values: + - text + - json_object + group: output_format diff --git a/models/moonshot/kimi-k2.7-code-subscription.yaml b/models/moonshot/kimi-k2.7-code-subscription.yaml new file mode 100644 index 0000000..8cb377e --- /dev/null +++ b/models/moonshot/kimi-k2.7-code-subscription.yaml @@ -0,0 +1,21 @@ +# yaml-language-server: $schema=https://modelparams.dev/api/v1/schema.json +provider: moonshot +authType: subscription +model: kimi-k2.7-code +params: + - path: max_completion_tokens + type: integer + label: Max tokens + description: Maximum number of tokens to generate in the chat completion, covering both thinking and the final answer. + range: + min: 1 + group: generation_length + - path: response_format.type + type: enum + label: Response format + description: Forces the response into plain text or a JSON object. + default: text + values: + - text + - json_object + group: output_format diff --git a/packages/modelparams/src/generated/data.ts b/packages/modelparams/src/generated/data.ts index c10a067..aa3ec6a 100644 --- a/packages/modelparams/src/generated/data.ts +++ b/packages/modelparams/src/generated/data.ts @@ -9638,6 +9638,105 @@ export const CATALOG = [ } ] }, + { + "provider": "moonshot", + "authType": "subscription", + "model": "kimi-k2.6", + "params": [ + { + "path": "max_completion_tokens", + "label": "Max tokens", + "description": "Maximum number of tokens to generate in the chat completion.", + "group": "generation_length", + "type": "integer", + "range": { + "min": 1 + } + }, + { + "path": "thinking.type", + "label": "Thinking mode", + "description": "Controls whether Kimi reasons step by step before answering. Thinking is enabled by default; set disabled to respond directly.", + "group": "reasoning", + "type": "enum", + "default": "enabled", + "values": [ + "enabled", + "disabled" + ] + }, + { + "path": "response_format.type", + "label": "Response format", + "description": "Forces the response into plain text or a JSON object.", + "group": "output_format", + "type": "enum", + "default": "text", + "values": [ + "text", + "json_object" + ] + } + ] + }, + { + "provider": "moonshot", + "authType": "subscription", + "model": "kimi-k2.7-code-highspeed", + "params": [ + { + "path": "max_completion_tokens", + "label": "Max tokens", + "description": "Maximum number of tokens to generate in the chat completion, covering both thinking and the final answer.", + "group": "generation_length", + "type": "integer", + "range": { + "min": 1 + } + }, + { + "path": "response_format.type", + "label": "Response format", + "description": "Forces the response into plain text or a JSON object.", + "group": "output_format", + "type": "enum", + "default": "text", + "values": [ + "text", + "json_object" + ] + } + ] + }, + { + "provider": "moonshot", + "authType": "subscription", + "model": "kimi-k2.7-code", + "params": [ + { + "path": "max_completion_tokens", + "label": "Max tokens", + "description": "Maximum number of tokens to generate in the chat completion, covering both thinking and the final answer.", + "group": "generation_length", + "type": "integer", + "range": { + "min": 1 + } + }, + { + "path": "response_format.type", + "label": "Response format", + "description": "Forces the response into plain text or a JSON object.", + "group": "output_format", + "type": "enum", + "default": "text", + "values": [ + "text", + "json_object" + ] + } + ] + }, { "provider": "moonshot", "authType": "api_key", diff --git a/packages/modelparams/src/generated/defaults.ts b/packages/modelparams/src/generated/defaults.ts index a81eeaf..9b8f8bc 100644 --- a/packages/modelparams/src/generated/defaults.ts +++ b/packages/modelparams/src/generated/defaults.ts @@ -706,6 +706,16 @@ export const DEFAULTS = { "thinking.type": "enabled", "response_format.type": "text", }, + "moonshot/kimi-k2.6-subscription": { + "thinking.type": "enabled", + "response_format.type": "text", + }, + "moonshot/kimi-k2.7-code-highspeed-subscription": { + "response_format.type": "text", + }, + "moonshot/kimi-k2.7-code-subscription": { + "response_format.type": "text", + }, "moonshot/moonshot-v1-128k": { temperature: 0.3, top_p: 1, diff --git a/packages/modelparams/src/generated/model-ids.ts b/packages/modelparams/src/generated/model-ids.ts index 8bc59d0..75c43cd 100644 --- a/packages/modelparams/src/generated/model-ids.ts +++ b/packages/modelparams/src/generated/model-ids.ts @@ -106,6 +106,9 @@ export const MODEL_IDS = [ "mistral/open-mistral-nemo", "moonshot/kimi-k2.5", "moonshot/kimi-k2.6", + "moonshot/kimi-k2.6-subscription", + "moonshot/kimi-k2.7-code-highspeed-subscription", + "moonshot/kimi-k2.7-code-subscription", "moonshot/moonshot-v1-128k", "moonshot/moonshot-v1-32k", "moonshot/moonshot-v1-8k", diff --git a/packages/modelparams/src/generated/params-by-id.ts b/packages/modelparams/src/generated/params-by-id.ts index 702e49f..fcf9ae0 100644 --- a/packages/modelparams/src/generated/params-by-id.ts +++ b/packages/modelparams/src/generated/params-by-id.ts @@ -886,6 +886,19 @@ export type ParamsById = { "thinking.type": "enabled" | "disabled"; "response_format.type": "text" | "json_object"; }; + "moonshot/kimi-k2.6-subscription": { + max_completion_tokens: number; + "thinking.type": "enabled" | "disabled"; + "response_format.type": "text" | "json_object"; + }; + "moonshot/kimi-k2.7-code-highspeed-subscription": { + max_completion_tokens: number; + "response_format.type": "text" | "json_object"; + }; + "moonshot/kimi-k2.7-code-subscription": { + max_completion_tokens: number; + "response_format.type": "text" | "json_object"; + }; "moonshot/moonshot-v1-128k": { max_completion_tokens: number; temperature: number;