From 9ad1ede4d8cd0235eb1abe3c1f0938e7a4ddd977 Mon Sep 17 00:00:00 2001 From: Alain Date: Mon, 4 Aug 2025 16:46:52 +0800 Subject: [PATCH 1/2] feat: update kimi-k2 model configuration - Add tool-call capabilities (tool-call, multi-tool-call, stream-tool-call) - Adjust context size from 131072 to 128000 tokens - Remove top_k default value and presence_penalty parameter - Add max_tokens parameter with range 1-16384, default 16384 - Add pricing information (input: 4, output: 16 RMB per million tokens) --- models/llm/kimi-k2.yaml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/models/llm/kimi-k2.yaml b/models/llm/kimi-k2.yaml index d2ddf90..edf3e04 100644 --- a/models/llm/kimi-k2.yaml +++ b/models/llm/kimi-k2.yaml @@ -5,9 +5,12 @@ label: model_type: llm features: - agent-thought + - tool-call + - multi-tool-call + - stream-tool-call model_properties: mode: chat - context_size: 131072 + context_size: 128000 parameter_rules: - name: temperature use_template: temperature @@ -19,11 +22,17 @@ parameter_rules: zh_Hans: 取样数量 en_US: Top k type: int - default: 1.0 help: zh_Hans: 仅从每个后续标记的前 K 个选项中采样。 en_US: Only sample from the top K options for each subsequent token. required: false - - name: presence_penalty - use_template: presence_penalty - default: 0 + - name: max_tokens + use_template: max_tokens + min: 1 + max: 16384 + default: 16384 +pricing: + input: "4" + output: "16" + unit: "0.000001" + currency: RMB From b8cd713f64feb20162fdc4d7c71e817c1fc8137f Mon Sep 17 00:00:00 2001 From: Alain Date: Mon, 4 Aug 2025 16:54:02 +0800 Subject: [PATCH 2/2] feat: remove pricing configuration from kimi-k2 model Remove pricing information including input/output rates and currency settings from kimi-k2.yaml configuration file --- models/llm/kimi-k2.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/models/llm/kimi-k2.yaml b/models/llm/kimi-k2.yaml index edf3e04..f2d0509 100644 --- a/models/llm/kimi-k2.yaml +++ b/models/llm/kimi-k2.yaml @@ -31,8 +31,3 @@ parameter_rules: min: 1 max: 16384 default: 16384 -pricing: - input: "4" - output: "16" - unit: "0.000001" - currency: RMB