Skip to content

Commit 1bf2ad0

Browse files
authored
feat(moonshot): add kimi-k3 and kimi-k2.7-code model support (#3458)
1 parent 629eccf commit 1bf2ad0

12 files changed

Lines changed: 1056 additions & 355 deletions

File tree

models/moonshot/.difyignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.venv/
2+
__pycache__/
3+
*.py[cod]
4+
.pytest_cache/
5+
.ruff_cache/
6+
.env
7+
*.difypkg

models/moonshot/.env.example

Lines changed: 0 additions & 4 deletions
This file was deleted.

models/moonshot/manifest.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
author: langgenius
22
created_at: '2024-09-20T00:13:50.29298939-04:00'
33
description:
4-
en_US: Models provided by Moonshot, such as kimi-k2.6, kimi-k2.5, kimi-k2, moonshot-v1-8k, moonshot-v1-32k, and moonshot-v1-128k.
5-
zh_Hans: Moonshot 提供的模型,例如 kimi-k2.6, kimi-k2.5, kimi-k2, moonshot-v1-8k、moonshot-v1-32k 和 moonshot-v1-128k。
4+
en_US: Models provided by Moonshot, such as kimi-k3, kimi-k2.7-code, kimi-k2.6, kimi-k2.5, kimi-k2, moonshot-v1-8k, moonshot-v1-32k, and moonshot-v1-128k.
5+
zh_Hans: Moonshot 提供的模型,例如 kimi-k3, kimi-k2.7-code, kimi-k2.6, kimi-k2.5, kimi-k2, moonshot-v1-8k、moonshot-v1-32k 和 moonshot-v1-128k。
66
icon: icon_s_en.png
77
label:
88
en_US: Moonshot
@@ -34,4 +34,4 @@ resource:
3434
tool:
3535
enabled: true
3636
type: plugin
37-
version: 0.1.8
37+
version: 0.1.9

models/moonshot/models/llm/_position.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@
88
- kimi-k2-thinking-turbo
99
- kimi-k2.5
1010
- kimi-k2.6
11+
- kimi-k2.7-code
12+
- kimi-k2.7-code-highspeed
13+
- kimi-k3
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
model: kimi-k2.7-code-highspeed
2+
label:
3+
zh_Hans: kimi-k2.7-code-highspeed
4+
en_US: kimi-k2.7-code-highspeed
5+
model_type: llm
6+
features:
7+
- vision
8+
- video
9+
- structured-output
10+
- agent-thought
11+
- tool-call
12+
- multi-tool-call
13+
- stream-tool-call
14+
model_properties:
15+
mode: chat
16+
context_size: 262144
17+
parameter_rules:
18+
- name: max_completion_tokens
19+
use_template: max_tokens
20+
default: 32768
21+
min: 1
22+
max: 262144
23+
- name: response_format
24+
label:
25+
zh_Hans: 回复格式
26+
en_US: Response Format
27+
type: string
28+
help:
29+
zh_Hans: 指定模型必须输出的格式
30+
en_US: specifying the format that the model must output
31+
required: false
32+
options:
33+
- text
34+
- json_object
35+
- json_schema
36+
- name: json_schema
37+
use_template: json_schema
38+
pricing:
39+
input: '13'
40+
output: '54'
41+
unit: '0.000001'
42+
currency: RMB
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
model: kimi-k2.7-code
2+
label:
3+
zh_Hans: kimi-k2.7-code
4+
en_US: kimi-k2.7-code
5+
model_type: llm
6+
features:
7+
- vision
8+
- video
9+
- structured-output
10+
- agent-thought
11+
- tool-call
12+
- multi-tool-call
13+
- stream-tool-call
14+
model_properties:
15+
mode: chat
16+
context_size: 262144
17+
parameter_rules:
18+
- name: max_completion_tokens
19+
use_template: max_tokens
20+
default: 32768
21+
min: 1
22+
max: 262144
23+
- name: response_format
24+
label:
25+
zh_Hans: 回复格式
26+
en_US: Response Format
27+
type: string
28+
help:
29+
zh_Hans: 指定模型必须输出的格式
30+
en_US: specifying the format that the model must output
31+
required: false
32+
options:
33+
- text
34+
- json_object
35+
- json_schema
36+
- name: json_schema
37+
use_template: json_schema
38+
pricing:
39+
input: '6.5'
40+
output: '27'
41+
unit: '0.000001'
42+
currency: RMB
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
model: kimi-k3
2+
label:
3+
zh_Hans: kimi-k3
4+
en_US: kimi-k3
5+
model_type: llm
6+
features:
7+
- vision
8+
- video
9+
- structured-output
10+
- agent-thought
11+
- tool-call
12+
- multi-tool-call
13+
- stream-tool-call
14+
model_properties:
15+
mode: chat
16+
context_size: 1048576
17+
parameter_rules:
18+
- name: max_completion_tokens
19+
use_template: max_tokens
20+
default: 131072
21+
min: 1
22+
max: 1048576
23+
- name: response_format
24+
label:
25+
zh_Hans: 回复格式
26+
en_US: Response Format
27+
type: string
28+
help:
29+
zh_Hans: 指定模型必须输出的格式
30+
en_US: specifying the format that the model must output
31+
required: false
32+
options:
33+
- text
34+
- json_object
35+
- json_schema
36+
- name: json_schema
37+
use_template: json_schema
38+
pricing:
39+
input: '20'
40+
output: '100'
41+
unit: '0.000001'
42+
currency: RMB

0 commit comments

Comments
 (0)