llm.rb 15.5.0 → 16.0.0.pre.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +88 -1
- data/README.md +21 -30
- data/data/alibaba.json +1123 -949
- data/data/anthropic.json +296 -242
- data/data/bedrock.json +4178 -3807
- data/data/deepinfra.json +1529 -1358
- data/data/deepseek.json +15 -11
- data/data/google.json +787 -763
- data/data/mistral.json +476 -496
- data/data/moonshot.json +53 -50
- data/data/openai.json +1294 -1165
- data/data/openrouter.json +8722 -8546
- data/data/xai.json +207 -202
- data/data/zai.json +271 -264
- data/docs/deepdive/features/builtin_tools.md +3 -1
- data/docs/deepdive/features/console.md +7 -0
- data/docs/deepdive/fundamentals/schema.md +46 -0
- data/docs/deepdive/fundamentals/tools.md +68 -0
- data/docs/deepdive/protocols/a2a.md +91 -0
- data/docs/deepdive/protocols/mcp.md +50 -0
- data/docs/deepdive/reference/model_registry.md +1 -1
- data/lib/llm/console/input.rb +15 -5
- data/lib/llm/function/async/reactor.rb +10 -0
- data/lib/llm/function/async/task.rb +63 -11
- data/lib/llm/function/fork/job.rb +31 -8
- data/lib/llm/function/ractor/job.rb +59 -20
- data/lib/llm/function/ractor/mailbox.rb +39 -3
- data/lib/llm/function/ractor/task.rb +26 -9
- data/lib/llm/function/window.rb +77 -0
- data/lib/llm/function.rb +2 -1
- data/lib/llm/providers/deepseek/request_adapter/completion.rb +43 -2
- data/lib/llm/tool/param.rb +8 -8
- data/lib/llm/tools/exec.rb +2 -0
- data/lib/llm/version.rb +1 -1
- data/llm.gemspec +4 -4
- metadata +7 -6
data/data/moonshot.json
CHANGED
|
@@ -8,6 +8,56 @@
|
|
|
8
8
|
"name": "Moonshot AI",
|
|
9
9
|
"doc": "https://platform.moonshot.ai/docs/api/chat",
|
|
10
10
|
"models": {
|
|
11
|
+
"kimi-k3": {
|
|
12
|
+
"id": "kimi-k3",
|
|
13
|
+
"name": "Kimi K3",
|
|
14
|
+
"description": "Multimodal Kimi model with 1M context and toggleable max-effort thinking for long-horizon agent work",
|
|
15
|
+
"family": "kimi-k3",
|
|
16
|
+
"attachment": true,
|
|
17
|
+
"reasoning": true,
|
|
18
|
+
"reasoning_options": [
|
|
19
|
+
{
|
|
20
|
+
"type": "toggle"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"type": "effort",
|
|
24
|
+
"values": [
|
|
25
|
+
"low",
|
|
26
|
+
"high",
|
|
27
|
+
"max"
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"tool_call": true,
|
|
32
|
+
"interleaved": {
|
|
33
|
+
"field": "reasoning_content"
|
|
34
|
+
},
|
|
35
|
+
"structured_output": true,
|
|
36
|
+
"temperature": false,
|
|
37
|
+
"release_date": "2026-07-16",
|
|
38
|
+
"last_updated": "2026-07-16",
|
|
39
|
+
"modalities": {
|
|
40
|
+
"input": [
|
|
41
|
+
"text",
|
|
42
|
+
"image",
|
|
43
|
+
"video"
|
|
44
|
+
],
|
|
45
|
+
"output": [
|
|
46
|
+
"text"
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
"open_weights": true,
|
|
50
|
+
"limit": {
|
|
51
|
+
"context": 1048576,
|
|
52
|
+
"output": 1048576
|
|
53
|
+
},
|
|
54
|
+
"cost": {
|
|
55
|
+
"input": 3,
|
|
56
|
+
"output": 15,
|
|
57
|
+
"cache_read": 0.3
|
|
58
|
+
},
|
|
59
|
+
"canonical_model_id": "moonshotai/kimi-k3"
|
|
60
|
+
},
|
|
11
61
|
"kimi-k2.7-code-highspeed": {
|
|
12
62
|
"id": "kimi-k2.7-code-highspeed",
|
|
13
63
|
"name": "Kimi K2.7 Code HighSpeed",
|
|
@@ -44,7 +94,8 @@
|
|
|
44
94
|
"input": 1.9,
|
|
45
95
|
"output": 8,
|
|
46
96
|
"cache_read": 0.38
|
|
47
|
-
}
|
|
97
|
+
},
|
|
98
|
+
"canonical_model_id": "moonshotai/kimi-k2.7-code"
|
|
48
99
|
},
|
|
49
100
|
"kimi-k2.6": {
|
|
50
101
|
"id": "kimi-k2.6",
|
|
@@ -124,56 +175,8 @@
|
|
|
124
175
|
"input": 0.95,
|
|
125
176
|
"output": 4,
|
|
126
177
|
"cache_read": 0.19
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
"kimi-k3": {
|
|
130
|
-
"id": "kimi-k3",
|
|
131
|
-
"name": "Kimi K3",
|
|
132
|
-
"description": "Multimodal Kimi model with 1M context and toggleable max-effort thinking for long-horizon agent work",
|
|
133
|
-
"family": "kimi-k3",
|
|
134
|
-
"attachment": true,
|
|
135
|
-
"reasoning": true,
|
|
136
|
-
"reasoning_options": [
|
|
137
|
-
{
|
|
138
|
-
"type": "toggle"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"type": "effort",
|
|
142
|
-
"values": [
|
|
143
|
-
"low",
|
|
144
|
-
"high",
|
|
145
|
-
"max"
|
|
146
|
-
]
|
|
147
|
-
}
|
|
148
|
-
],
|
|
149
|
-
"tool_call": true,
|
|
150
|
-
"interleaved": {
|
|
151
|
-
"field": "reasoning_content"
|
|
152
178
|
},
|
|
153
|
-
"
|
|
154
|
-
"temperature": false,
|
|
155
|
-
"release_date": "2026-07-16",
|
|
156
|
-
"last_updated": "2026-07-16",
|
|
157
|
-
"modalities": {
|
|
158
|
-
"input": [
|
|
159
|
-
"text",
|
|
160
|
-
"image",
|
|
161
|
-
"video"
|
|
162
|
-
],
|
|
163
|
-
"output": [
|
|
164
|
-
"text"
|
|
165
|
-
]
|
|
166
|
-
},
|
|
167
|
-
"open_weights": true,
|
|
168
|
-
"limit": {
|
|
169
|
-
"context": 1048576,
|
|
170
|
-
"output": 1048576
|
|
171
|
-
},
|
|
172
|
-
"cost": {
|
|
173
|
-
"input": 3,
|
|
174
|
-
"output": 15,
|
|
175
|
-
"cache_read": 0.3
|
|
176
|
-
}
|
|
179
|
+
"canonical_model_id": "moonshotai/kimi-k2.7-code"
|
|
177
180
|
}
|
|
178
181
|
}
|
|
179
182
|
}
|