llm.rb 13.0.0 → 14.0.0
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 +505 -14
- data/README.md +484 -50
- data/bin/llm.rb +148 -0
- data/data/anthropic.json +206 -263
- data/data/bedrock.json +2138 -1860
- data/data/deepinfra.json +1003 -624
- data/data/deepseek.json +38 -34
- data/data/google.json +1079 -371
- data/data/mistral.json +448 -368
- data/data/moonshot.json +384 -0
- data/data/openai.json +974 -1343
- data/data/xai.json +154 -126
- data/data/zai.json +191 -191
- data/lib/llm/agent.rb +123 -20
- data/lib/llm/context.rb +71 -88
- data/lib/llm/cost.rb +23 -17
- data/lib/llm/error.rb +0 -8
- data/lib/llm/function/array.rb +3 -3
- data/lib/llm/function/async/task.rb +2 -0
- data/lib/llm/function/fiber/task.rb +2 -0
- data/lib/llm/function/fork/task.rb +2 -0
- data/lib/llm/function/ractor/task.rb +2 -0
- data/lib/llm/function/sequential/group.rb +4 -1
- data/lib/llm/function/sequential/task.rb +1 -1
- data/lib/llm/function/task.rb +4 -0
- data/lib/llm/function/thread/task.rb +2 -0
- data/lib/llm/function.rb +33 -6
- data/lib/llm/guard/loop.rb +89 -0
- data/lib/llm/guard/null.rb +19 -0
- data/lib/llm/guard.rb +61 -0
- data/lib/llm/provider.rb +36 -0
- data/lib/llm/providers/anthropic/stream_parser.rb +1 -0
- data/lib/llm/providers/anthropic.rb +2 -9
- data/lib/llm/providers/bedrock/request_adapter.rb +1 -1
- data/lib/llm/providers/bedrock/stream_parser.rb +1 -0
- data/lib/llm/providers/bedrock.rb +1 -8
- data/lib/llm/providers/google/stream_parser.rb +1 -0
- data/lib/llm/providers/google.rb +1 -8
- data/lib/llm/providers/mistral.rb +1 -1
- data/lib/llm/providers/moonshot.rb +76 -0
- data/lib/llm/providers/ollama.rb +2 -9
- data/lib/llm/providers/openai/responses/stream_parser.rb +1 -0
- data/lib/llm/providers/openai/responses.rb +7 -9
- data/lib/llm/providers/openai/stream_parser.rb +1 -0
- data/lib/llm/providers/openai.rb +4 -11
- data/lib/llm/repl/bar.rb +4 -3
- data/lib/llm/repl/{transcript.rb → buffer.rb} +69 -29
- data/lib/llm/repl/color.rb +78 -0
- data/lib/llm/repl/command.rb +12 -5
- data/lib/llm/repl/commands/compact.rb +2 -2
- data/lib/llm/repl/commands/help.rb +3 -5
- data/lib/llm/repl/input/char.rb +46 -0
- data/lib/llm/repl/input/row.rb +39 -0
- data/lib/llm/repl/input.rb +251 -66
- data/lib/llm/repl/markdown/table.rb +11 -3
- data/lib/llm/repl/markdown.rb +34 -8
- data/lib/llm/repl/node.rb +37 -0
- data/lib/llm/repl/status.rb +42 -7
- data/lib/llm/repl/stream.rb +18 -6
- data/lib/llm/repl/walker.rb +3 -2
- data/lib/llm/repl/window.rb +54 -35
- data/lib/llm/repl.rb +74 -32
- data/lib/llm/skill.rb +20 -4
- data/lib/llm/stream.rb +8 -7
- data/lib/llm/tool.rb +29 -0
- data/lib/llm/tools/{swap_text.rb → edit-file.rb} +3 -3
- data/lib/llm/tools/git.rb +3 -0
- data/lib/llm/tools/mkdir.rb +3 -0
- data/lib/llm/tools/rg.rb +3 -0
- data/lib/llm/tools/ruby.rb +46 -0
- data/lib/llm/tools/shell.rb +3 -0
- data/lib/llm/tracer/pretty_logger.rb +127 -0
- data/lib/llm/tracer.rb +1 -0
- data/lib/llm/transformer/null.rb +21 -0
- data/lib/llm/transformer.rb +55 -0
- data/lib/llm/version.rb +1 -1
- data/lib/llm.rb +12 -2
- data/llm.gemspec +9 -2
- data/resources/deepdive/advanced/cancellation.md +74 -0
- data/resources/deepdive/advanced/compaction.md +83 -0
- data/resources/deepdive/advanced/context.md +267 -0
- data/resources/deepdive/advanced/guard.md +371 -0
- data/resources/deepdive/advanced/tracer.md +180 -0
- data/resources/deepdive/advanced/transformer.md +67 -0
- data/resources/deepdive/advanced/transports.md +45 -0
- data/resources/deepdive/everything_else/audio.md +122 -0
- data/resources/deepdive/everything_else/cost.md +99 -0
- data/resources/deepdive/everything_else/images.md +89 -0
- data/resources/deepdive/everything_else/object.md +108 -0
- data/resources/deepdive/everything_else/ocr.md +48 -0
- data/resources/deepdive/fundamentals/agents.md +202 -0
- data/resources/deepdive/fundamentals/builtin_tools.md +191 -0
- data/resources/deepdive/fundamentals/concurrency.md +104 -0
- data/resources/deepdive/fundamentals/database.md +449 -0
- data/resources/deepdive/fundamentals/embeddings.md +157 -0
- data/resources/deepdive/fundamentals/repl.md +87 -0
- data/resources/deepdive/fundamentals/schema.md +61 -0
- data/resources/deepdive/fundamentals/skills.md +106 -0
- data/resources/deepdive/fundamentals/stream.md +110 -0
- data/resources/deepdive/fundamentals/tools.md +265 -0
- data/resources/deepdive/protocols/a2a.md +106 -0
- data/resources/deepdive/protocols/mcp.md +111 -0
- data/resources/deepdive.md +58 -1792
- metadata +51 -7
- data/lib/llm/loop_guard.rb +0 -107
data/data/anthropic.json
CHANGED
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
"name": "Anthropic",
|
|
8
8
|
"doc": "https://docs.anthropic.com/en/docs/about-claude/models",
|
|
9
9
|
"models": {
|
|
10
|
-
"claude-
|
|
11
|
-
"id": "claude-
|
|
12
|
-
"name": "Claude
|
|
13
|
-
"description": "
|
|
14
|
-
"family": "claude-
|
|
10
|
+
"claude-sonnet-4-6": {
|
|
11
|
+
"id": "claude-sonnet-4-6",
|
|
12
|
+
"name": "Claude Sonnet 4.6",
|
|
13
|
+
"description": "Claude workhorse for coding agents, careful analysis, and production cost control",
|
|
14
|
+
"family": "claude-sonnet",
|
|
15
15
|
"attachment": true,
|
|
16
16
|
"reasoning": true,
|
|
17
17
|
"reasoning_options": [
|
|
@@ -21,17 +21,20 @@
|
|
|
21
21
|
"low",
|
|
22
22
|
"medium",
|
|
23
23
|
"high",
|
|
24
|
-
"xhigh",
|
|
25
24
|
"max"
|
|
26
25
|
]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"type": "budget_tokens",
|
|
29
|
+
"min": 1024
|
|
27
30
|
}
|
|
28
31
|
],
|
|
29
32
|
"tool_call": true,
|
|
30
33
|
"structured_output": true,
|
|
31
|
-
"temperature":
|
|
32
|
-
"knowledge": "
|
|
33
|
-
"release_date": "2026-
|
|
34
|
-
"last_updated": "2026-
|
|
34
|
+
"temperature": true,
|
|
35
|
+
"knowledge": "2025-08-31",
|
|
36
|
+
"release_date": "2026-02-17",
|
|
37
|
+
"last_updated": "2026-03-13",
|
|
35
38
|
"modalities": {
|
|
36
39
|
"input": [
|
|
37
40
|
"text",
|
|
@@ -47,38 +50,18 @@
|
|
|
47
50
|
"context": 1000000,
|
|
48
51
|
"output": 128000
|
|
49
52
|
},
|
|
50
|
-
"experimental": {
|
|
51
|
-
"modes": {
|
|
52
|
-
"fast": {
|
|
53
|
-
"cost": {
|
|
54
|
-
"input": 10,
|
|
55
|
-
"output": 50,
|
|
56
|
-
"cache_read": 1,
|
|
57
|
-
"cache_write": 12.5
|
|
58
|
-
},
|
|
59
|
-
"provider": {
|
|
60
|
-
"body": {
|
|
61
|
-
"speed": "fast"
|
|
62
|
-
},
|
|
63
|
-
"headers": {
|
|
64
|
-
"anthropic-beta": "fast-mode-2026-02-01"
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
53
|
"cost": {
|
|
71
|
-
"input":
|
|
72
|
-
"output":
|
|
73
|
-
"cache_read": 0.
|
|
74
|
-
"cache_write":
|
|
54
|
+
"input": 3,
|
|
55
|
+
"output": 15,
|
|
56
|
+
"cache_read": 0.3,
|
|
57
|
+
"cache_write": 3.75
|
|
75
58
|
}
|
|
76
59
|
},
|
|
77
|
-
"claude-
|
|
78
|
-
"id": "claude-
|
|
79
|
-
"name": "Claude
|
|
80
|
-
"description": "
|
|
81
|
-
"family": "claude-
|
|
60
|
+
"claude-haiku-4-5": {
|
|
61
|
+
"id": "claude-haiku-4-5",
|
|
62
|
+
"name": "Claude Haiku 4.5 (latest)",
|
|
63
|
+
"description": "Fast Claude lane for lightweight agents, office tasks, and responsive chat",
|
|
64
|
+
"family": "claude-haiku",
|
|
82
65
|
"attachment": true,
|
|
83
66
|
"reasoning": true,
|
|
84
67
|
"reasoning_options": [
|
|
@@ -90,9 +73,9 @@
|
|
|
90
73
|
"tool_call": true,
|
|
91
74
|
"structured_output": true,
|
|
92
75
|
"temperature": true,
|
|
93
|
-
"knowledge": "2025-
|
|
94
|
-
"release_date": "2025-
|
|
95
|
-
"last_updated": "2025-
|
|
76
|
+
"knowledge": "2025-02-28",
|
|
77
|
+
"release_date": "2025-10-15",
|
|
78
|
+
"last_updated": "2025-10-15",
|
|
96
79
|
"modalities": {
|
|
97
80
|
"input": [
|
|
98
81
|
"text",
|
|
@@ -106,21 +89,20 @@
|
|
|
106
89
|
"open_weights": false,
|
|
107
90
|
"limit": {
|
|
108
91
|
"context": 200000,
|
|
109
|
-
"output":
|
|
92
|
+
"output": 64000
|
|
110
93
|
},
|
|
111
|
-
"status": "deprecated",
|
|
112
94
|
"cost": {
|
|
113
|
-
"input":
|
|
114
|
-
"output":
|
|
115
|
-
"cache_read": 1
|
|
116
|
-
"cache_write":
|
|
95
|
+
"input": 1,
|
|
96
|
+
"output": 5,
|
|
97
|
+
"cache_read": 0.1,
|
|
98
|
+
"cache_write": 1.25
|
|
117
99
|
}
|
|
118
100
|
},
|
|
119
|
-
"claude-
|
|
120
|
-
"id": "claude-
|
|
121
|
-
"name": "Claude
|
|
122
|
-
"description": "Claude
|
|
123
|
-
"family": "claude-
|
|
101
|
+
"claude-opus-4-6": {
|
|
102
|
+
"id": "claude-opus-4-6",
|
|
103
|
+
"name": "Claude Opus 4.6",
|
|
104
|
+
"description": "High-end Claude for difficult coding, planning, and slower expert reasoning",
|
|
105
|
+
"family": "claude-opus",
|
|
124
106
|
"attachment": true,
|
|
125
107
|
"reasoning": true,
|
|
126
108
|
"reasoning_options": [
|
|
@@ -141,8 +123,8 @@
|
|
|
141
123
|
"tool_call": true,
|
|
142
124
|
"structured_output": true,
|
|
143
125
|
"temperature": true,
|
|
144
|
-
"knowledge": "2025-
|
|
145
|
-
"release_date": "2026-02-
|
|
126
|
+
"knowledge": "2025-05-31",
|
|
127
|
+
"release_date": "2026-02-04",
|
|
146
128
|
"last_updated": "2026-03-13",
|
|
147
129
|
"modalities": {
|
|
148
130
|
"input": [
|
|
@@ -160,31 +142,36 @@
|
|
|
160
142
|
"output": 128000
|
|
161
143
|
},
|
|
162
144
|
"cost": {
|
|
163
|
-
"input":
|
|
164
|
-
"output":
|
|
165
|
-
"cache_read": 0.
|
|
166
|
-
"cache_write":
|
|
145
|
+
"input": 5,
|
|
146
|
+
"output": 25,
|
|
147
|
+
"cache_read": 0.5,
|
|
148
|
+
"cache_write": 6.25
|
|
167
149
|
}
|
|
168
150
|
},
|
|
169
|
-
"claude-
|
|
170
|
-
"id": "claude-
|
|
171
|
-
"name": "Claude
|
|
172
|
-
"description": "
|
|
173
|
-
"family": "claude-
|
|
151
|
+
"claude-fable-5": {
|
|
152
|
+
"id": "claude-fable-5",
|
|
153
|
+
"name": "Claude Fable 5",
|
|
154
|
+
"description": "Claude model for creative writing, analysis, and controlled agent workflows",
|
|
155
|
+
"family": "claude-fable",
|
|
174
156
|
"attachment": true,
|
|
175
157
|
"reasoning": true,
|
|
176
158
|
"reasoning_options": [
|
|
177
159
|
{
|
|
178
|
-
"type": "
|
|
179
|
-
"
|
|
160
|
+
"type": "effort",
|
|
161
|
+
"values": [
|
|
162
|
+
"low",
|
|
163
|
+
"medium",
|
|
164
|
+
"high",
|
|
165
|
+
"xhigh",
|
|
166
|
+
"max"
|
|
167
|
+
]
|
|
180
168
|
}
|
|
181
169
|
],
|
|
182
170
|
"tool_call": true,
|
|
183
171
|
"structured_output": true,
|
|
184
|
-
"temperature":
|
|
185
|
-
"
|
|
186
|
-
"
|
|
187
|
-
"last_updated": "2025-08-05",
|
|
172
|
+
"temperature": false,
|
|
173
|
+
"release_date": "2026-06-07",
|
|
174
|
+
"last_updated": "2026-06-09",
|
|
188
175
|
"modalities": {
|
|
189
176
|
"input": [
|
|
190
177
|
"text",
|
|
@@ -197,36 +184,41 @@
|
|
|
197
184
|
},
|
|
198
185
|
"open_weights": false,
|
|
199
186
|
"limit": {
|
|
200
|
-
"context":
|
|
201
|
-
"output":
|
|
187
|
+
"context": 1000000,
|
|
188
|
+
"output": 128000
|
|
202
189
|
},
|
|
203
|
-
"status": "deprecated",
|
|
204
190
|
"cost": {
|
|
205
|
-
"input":
|
|
206
|
-
"output":
|
|
207
|
-
"cache_read": 1
|
|
208
|
-
"cache_write":
|
|
191
|
+
"input": 10,
|
|
192
|
+
"output": 50,
|
|
193
|
+
"cache_read": 1,
|
|
194
|
+
"cache_write": 12.5
|
|
209
195
|
}
|
|
210
196
|
},
|
|
211
|
-
"claude-
|
|
212
|
-
"id": "claude-
|
|
213
|
-
"name": "Claude
|
|
214
|
-
"description": "
|
|
215
|
-
"family": "claude-
|
|
197
|
+
"claude-opus-4-8": {
|
|
198
|
+
"id": "claude-opus-4-8",
|
|
199
|
+
"name": "Claude Opus 4.8",
|
|
200
|
+
"description": "Top Claude Opus tier for the hardest reasoning, coding, and long-horizon agents",
|
|
201
|
+
"family": "claude-opus",
|
|
216
202
|
"attachment": true,
|
|
217
203
|
"reasoning": true,
|
|
218
204
|
"reasoning_options": [
|
|
219
205
|
{
|
|
220
|
-
"type": "
|
|
221
|
-
"
|
|
206
|
+
"type": "effort",
|
|
207
|
+
"values": [
|
|
208
|
+
"low",
|
|
209
|
+
"medium",
|
|
210
|
+
"high",
|
|
211
|
+
"xhigh",
|
|
212
|
+
"max"
|
|
213
|
+
]
|
|
222
214
|
}
|
|
223
215
|
],
|
|
224
216
|
"tool_call": true,
|
|
225
217
|
"structured_output": true,
|
|
226
|
-
"temperature":
|
|
227
|
-
"knowledge": "
|
|
228
|
-
"release_date": "
|
|
229
|
-
"last_updated": "
|
|
218
|
+
"temperature": false,
|
|
219
|
+
"knowledge": "2026-01",
|
|
220
|
+
"release_date": "2026-05-28",
|
|
221
|
+
"last_updated": "2026-05-28",
|
|
230
222
|
"modalities": {
|
|
231
223
|
"input": [
|
|
232
224
|
"text",
|
|
@@ -239,32 +231,44 @@
|
|
|
239
231
|
},
|
|
240
232
|
"open_weights": false,
|
|
241
233
|
"limit": {
|
|
242
|
-
"context":
|
|
243
|
-
"output":
|
|
234
|
+
"context": 1000000,
|
|
235
|
+
"output": 128000
|
|
236
|
+
},
|
|
237
|
+
"experimental": {
|
|
238
|
+
"modes": {
|
|
239
|
+
"fast": {
|
|
240
|
+
"cost": {
|
|
241
|
+
"input": 10,
|
|
242
|
+
"output": 50,
|
|
243
|
+
"cache_read": 1,
|
|
244
|
+
"cache_write": 12.5
|
|
245
|
+
},
|
|
246
|
+
"provider": {
|
|
247
|
+
"body": {
|
|
248
|
+
"speed": "fast"
|
|
249
|
+
},
|
|
250
|
+
"headers": {
|
|
251
|
+
"anthropic-beta": "fast-mode-2026-02-01"
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
244
256
|
},
|
|
245
257
|
"cost": {
|
|
246
|
-
"input":
|
|
247
|
-
"output":
|
|
248
|
-
"cache_read": 0.
|
|
249
|
-
"cache_write":
|
|
258
|
+
"input": 5,
|
|
259
|
+
"output": 25,
|
|
260
|
+
"cache_read": 0.5,
|
|
261
|
+
"cache_write": 6.25
|
|
250
262
|
}
|
|
251
263
|
},
|
|
252
|
-
"claude-
|
|
253
|
-
"id": "claude-
|
|
254
|
-
"name": "Claude
|
|
255
|
-
"description": "
|
|
256
|
-
"family": "claude-
|
|
264
|
+
"claude-sonnet-4-5": {
|
|
265
|
+
"id": "claude-sonnet-4-5",
|
|
266
|
+
"name": "Claude Sonnet 4.5 (latest)",
|
|
267
|
+
"description": "Balanced Claude model for coding, analysis, agent workflows, and cost control",
|
|
268
|
+
"family": "claude-sonnet",
|
|
257
269
|
"attachment": true,
|
|
258
270
|
"reasoning": true,
|
|
259
271
|
"reasoning_options": [
|
|
260
|
-
{
|
|
261
|
-
"type": "effort",
|
|
262
|
-
"values": [
|
|
263
|
-
"low",
|
|
264
|
-
"medium",
|
|
265
|
-
"high"
|
|
266
|
-
]
|
|
267
|
-
},
|
|
268
272
|
{
|
|
269
273
|
"type": "budget_tokens",
|
|
270
274
|
"min": 1024
|
|
@@ -273,9 +277,9 @@
|
|
|
273
277
|
"tool_call": true,
|
|
274
278
|
"structured_output": true,
|
|
275
279
|
"temperature": true,
|
|
276
|
-
"knowledge": "2025-
|
|
277
|
-
"release_date": "2025-
|
|
278
|
-
"last_updated": "2025-
|
|
280
|
+
"knowledge": "2025-07-31",
|
|
281
|
+
"release_date": "2025-09-29",
|
|
282
|
+
"last_updated": "2025-09-29",
|
|
279
283
|
"modalities": {
|
|
280
284
|
"input": [
|
|
281
285
|
"text",
|
|
@@ -288,14 +292,14 @@
|
|
|
288
292
|
},
|
|
289
293
|
"open_weights": false,
|
|
290
294
|
"limit": {
|
|
291
|
-
"context":
|
|
295
|
+
"context": 1000000,
|
|
292
296
|
"output": 64000
|
|
293
297
|
},
|
|
294
298
|
"cost": {
|
|
295
|
-
"input":
|
|
296
|
-
"output":
|
|
297
|
-
"cache_read": 0.
|
|
298
|
-
"cache_write":
|
|
299
|
+
"input": 3,
|
|
300
|
+
"output": 15,
|
|
301
|
+
"cache_read": 0.3,
|
|
302
|
+
"cache_write": 3.75
|
|
299
303
|
}
|
|
300
304
|
},
|
|
301
305
|
"claude-sonnet-4-5-20250929": {
|
|
@@ -339,11 +343,11 @@
|
|
|
339
343
|
"cache_write": 3.75
|
|
340
344
|
}
|
|
341
345
|
},
|
|
342
|
-
"claude-
|
|
343
|
-
"id": "claude-
|
|
344
|
-
"name": "Claude
|
|
345
|
-
"description": "Claude model for
|
|
346
|
-
"family": "claude-
|
|
346
|
+
"claude-opus-4-5-20251101": {
|
|
347
|
+
"id": "claude-opus-4-5-20251101",
|
|
348
|
+
"name": "Claude Opus 4.5",
|
|
349
|
+
"description": "Flagship Claude model for deep reasoning, coding, and long-horizon agents",
|
|
350
|
+
"family": "claude-opus",
|
|
347
351
|
"attachment": true,
|
|
348
352
|
"reasoning": true,
|
|
349
353
|
"reasoning_options": [
|
|
@@ -352,17 +356,20 @@
|
|
|
352
356
|
"values": [
|
|
353
357
|
"low",
|
|
354
358
|
"medium",
|
|
355
|
-
"high"
|
|
356
|
-
"xhigh",
|
|
357
|
-
"max"
|
|
359
|
+
"high"
|
|
358
360
|
]
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"type": "budget_tokens",
|
|
364
|
+
"min": 1024
|
|
359
365
|
}
|
|
360
366
|
],
|
|
361
367
|
"tool_call": true,
|
|
362
368
|
"structured_output": true,
|
|
363
|
-
"temperature":
|
|
364
|
-
"
|
|
365
|
-
"
|
|
369
|
+
"temperature": true,
|
|
370
|
+
"knowledge": "2025-05",
|
|
371
|
+
"release_date": "2025-11-24",
|
|
372
|
+
"last_updated": "2025-11-01",
|
|
366
373
|
"modalities": {
|
|
367
374
|
"input": [
|
|
368
375
|
"text",
|
|
@@ -375,44 +382,35 @@
|
|
|
375
382
|
},
|
|
376
383
|
"open_weights": false,
|
|
377
384
|
"limit": {
|
|
378
|
-
"context":
|
|
379
|
-
"output":
|
|
385
|
+
"context": 200000,
|
|
386
|
+
"output": 64000
|
|
380
387
|
},
|
|
381
388
|
"cost": {
|
|
382
|
-
"input":
|
|
383
|
-
"output":
|
|
384
|
-
"cache_read":
|
|
385
|
-
"cache_write":
|
|
389
|
+
"input": 5,
|
|
390
|
+
"output": 25,
|
|
391
|
+
"cache_read": 0.5,
|
|
392
|
+
"cache_write": 6.25
|
|
386
393
|
}
|
|
387
394
|
},
|
|
388
|
-
"claude-
|
|
389
|
-
"id": "claude-
|
|
390
|
-
"name": "Claude
|
|
391
|
-
"description": "
|
|
392
|
-
"family": "claude-
|
|
395
|
+
"claude-haiku-4-5-20251001": {
|
|
396
|
+
"id": "claude-haiku-4-5-20251001",
|
|
397
|
+
"name": "Claude Haiku 4.5",
|
|
398
|
+
"description": "Fast Claude model for responsive assistance, classification, and lightweight agents",
|
|
399
|
+
"family": "claude-haiku",
|
|
393
400
|
"attachment": true,
|
|
394
401
|
"reasoning": true,
|
|
395
402
|
"reasoning_options": [
|
|
396
403
|
{
|
|
397
|
-
"type": "
|
|
398
|
-
|
|
399
|
-
{
|
|
400
|
-
"type": "effort",
|
|
401
|
-
"values": [
|
|
402
|
-
"low",
|
|
403
|
-
"medium",
|
|
404
|
-
"high",
|
|
405
|
-
"xhigh",
|
|
406
|
-
"max"
|
|
407
|
-
]
|
|
404
|
+
"type": "budget_tokens",
|
|
405
|
+
"min": 1024
|
|
408
406
|
}
|
|
409
407
|
],
|
|
410
408
|
"tool_call": true,
|
|
411
409
|
"structured_output": true,
|
|
412
|
-
"temperature":
|
|
413
|
-
"knowledge": "
|
|
414
|
-
"release_date": "
|
|
415
|
-
"last_updated": "
|
|
410
|
+
"temperature": true,
|
|
411
|
+
"knowledge": "2025-02-28",
|
|
412
|
+
"release_date": "2025-10-15",
|
|
413
|
+
"last_updated": "2025-10-15",
|
|
416
414
|
"modalities": {
|
|
417
415
|
"input": [
|
|
418
416
|
"text",
|
|
@@ -425,35 +423,41 @@
|
|
|
425
423
|
},
|
|
426
424
|
"open_weights": false,
|
|
427
425
|
"limit": {
|
|
428
|
-
"context":
|
|
429
|
-
"output":
|
|
426
|
+
"context": 200000,
|
|
427
|
+
"output": 64000
|
|
430
428
|
},
|
|
431
429
|
"cost": {
|
|
432
|
-
"input":
|
|
433
|
-
"output":
|
|
434
|
-
"cache_read": 0.
|
|
435
|
-
"cache_write":
|
|
430
|
+
"input": 1,
|
|
431
|
+
"output": 5,
|
|
432
|
+
"cache_read": 0.1,
|
|
433
|
+
"cache_write": 1.25
|
|
436
434
|
}
|
|
437
435
|
},
|
|
438
|
-
"claude-
|
|
439
|
-
"id": "claude-
|
|
440
|
-
"name": "Claude
|
|
441
|
-
"description": "
|
|
442
|
-
"family": "claude-
|
|
436
|
+
"claude-opus-4-7": {
|
|
437
|
+
"id": "claude-opus-4-7",
|
|
438
|
+
"name": "Claude Opus 4.7",
|
|
439
|
+
"description": "Stronger Opus tier for advanced software work and high-stakes reasoning",
|
|
440
|
+
"family": "claude-opus",
|
|
443
441
|
"attachment": true,
|
|
444
442
|
"reasoning": true,
|
|
445
443
|
"reasoning_options": [
|
|
446
444
|
{
|
|
447
|
-
"type": "
|
|
448
|
-
"
|
|
445
|
+
"type": "effort",
|
|
446
|
+
"values": [
|
|
447
|
+
"low",
|
|
448
|
+
"medium",
|
|
449
|
+
"high",
|
|
450
|
+
"xhigh",
|
|
451
|
+
"max"
|
|
452
|
+
]
|
|
449
453
|
}
|
|
450
454
|
],
|
|
451
455
|
"tool_call": true,
|
|
452
456
|
"structured_output": true,
|
|
453
|
-
"temperature":
|
|
454
|
-
"knowledge": "
|
|
455
|
-
"release_date": "
|
|
456
|
-
"last_updated": "
|
|
457
|
+
"temperature": false,
|
|
458
|
+
"knowledge": "2026-01-31",
|
|
459
|
+
"release_date": "2026-04-14",
|
|
460
|
+
"last_updated": "2026-04-16",
|
|
457
461
|
"modalities": {
|
|
458
462
|
"input": [
|
|
459
463
|
"text",
|
|
@@ -466,14 +470,14 @@
|
|
|
466
470
|
},
|
|
467
471
|
"open_weights": false,
|
|
468
472
|
"limit": {
|
|
469
|
-
"context":
|
|
470
|
-
"output":
|
|
473
|
+
"context": 1000000,
|
|
474
|
+
"output": 128000
|
|
471
475
|
},
|
|
472
476
|
"cost": {
|
|
473
|
-
"input":
|
|
474
|
-
"output":
|
|
475
|
-
"cache_read": 0.
|
|
476
|
-
"cache_write":
|
|
477
|
+
"input": 5,
|
|
478
|
+
"output": 25,
|
|
479
|
+
"cache_read": 0.5,
|
|
480
|
+
"cache_write": 6.25
|
|
477
481
|
}
|
|
478
482
|
},
|
|
479
483
|
"claude-opus-4-5": {
|
|
@@ -525,14 +529,17 @@
|
|
|
525
529
|
"cache_write": 6.25
|
|
526
530
|
}
|
|
527
531
|
},
|
|
528
|
-
"claude-
|
|
529
|
-
"id": "claude-
|
|
530
|
-
"name": "Claude
|
|
531
|
-
"description": "
|
|
532
|
-
"family": "claude-
|
|
532
|
+
"claude-sonnet-5": {
|
|
533
|
+
"id": "claude-sonnet-5",
|
|
534
|
+
"name": "Claude Sonnet 5",
|
|
535
|
+
"description": "Everyday Claude agent model for coding, planning, browsing, and general work",
|
|
536
|
+
"family": "claude-sonnet",
|
|
533
537
|
"attachment": true,
|
|
534
538
|
"reasoning": true,
|
|
535
539
|
"reasoning_options": [
|
|
540
|
+
{
|
|
541
|
+
"type": "toggle"
|
|
542
|
+
},
|
|
536
543
|
{
|
|
537
544
|
"type": "effort",
|
|
538
545
|
"values": [
|
|
@@ -548,8 +555,8 @@
|
|
|
548
555
|
"structured_output": true,
|
|
549
556
|
"temperature": false,
|
|
550
557
|
"knowledge": "2026-01-31",
|
|
551
|
-
"release_date": "2026-
|
|
552
|
-
"last_updated": "2026-
|
|
558
|
+
"release_date": "2026-06-29",
|
|
559
|
+
"last_updated": "2026-06-30",
|
|
553
560
|
"modalities": {
|
|
554
561
|
"input": [
|
|
555
562
|
"text",
|
|
@@ -565,37 +572,17 @@
|
|
|
565
572
|
"context": 1000000,
|
|
566
573
|
"output": 128000
|
|
567
574
|
},
|
|
568
|
-
"experimental": {
|
|
569
|
-
"modes": {
|
|
570
|
-
"fast": {
|
|
571
|
-
"cost": {
|
|
572
|
-
"input": 30,
|
|
573
|
-
"output": 150,
|
|
574
|
-
"cache_read": 3,
|
|
575
|
-
"cache_write": 37.5
|
|
576
|
-
},
|
|
577
|
-
"provider": {
|
|
578
|
-
"body": {
|
|
579
|
-
"speed": "fast"
|
|
580
|
-
},
|
|
581
|
-
"headers": {
|
|
582
|
-
"anthropic-beta": "fast-mode-2026-02-01"
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
},
|
|
588
575
|
"cost": {
|
|
589
|
-
"input":
|
|
590
|
-
"output":
|
|
591
|
-
"cache_read": 0.
|
|
592
|
-
"cache_write":
|
|
576
|
+
"input": 2,
|
|
577
|
+
"output": 10,
|
|
578
|
+
"cache_read": 0.2,
|
|
579
|
+
"cache_write": 2.5
|
|
593
580
|
}
|
|
594
581
|
},
|
|
595
|
-
"claude-opus-
|
|
596
|
-
"id": "claude-opus-
|
|
597
|
-
"name": "Claude Opus
|
|
598
|
-
"description": "
|
|
582
|
+
"claude-opus-5": {
|
|
583
|
+
"id": "claude-opus-5",
|
|
584
|
+
"name": "Claude Opus 5",
|
|
585
|
+
"description": "Strongest Claude Opus model for coding, agents, and professional work",
|
|
599
586
|
"family": "claude-opus",
|
|
600
587
|
"attachment": true,
|
|
601
588
|
"reasoning": true,
|
|
@@ -606,20 +593,17 @@
|
|
|
606
593
|
"low",
|
|
607
594
|
"medium",
|
|
608
595
|
"high",
|
|
596
|
+
"xhigh",
|
|
609
597
|
"max"
|
|
610
598
|
]
|
|
611
|
-
},
|
|
612
|
-
{
|
|
613
|
-
"type": "budget_tokens",
|
|
614
|
-
"min": 1024
|
|
615
599
|
}
|
|
616
600
|
],
|
|
617
601
|
"tool_call": true,
|
|
618
602
|
"structured_output": true,
|
|
619
|
-
"temperature":
|
|
620
|
-
"knowledge": "
|
|
621
|
-
"release_date": "2026-
|
|
622
|
-
"last_updated": "2026-
|
|
603
|
+
"temperature": false,
|
|
604
|
+
"knowledge": "2026-05",
|
|
605
|
+
"release_date": "2026-07-24",
|
|
606
|
+
"last_updated": "2026-07-24",
|
|
623
607
|
"modalities": {
|
|
624
608
|
"input": [
|
|
625
609
|
"text",
|
|
@@ -639,10 +623,10 @@
|
|
|
639
623
|
"modes": {
|
|
640
624
|
"fast": {
|
|
641
625
|
"cost": {
|
|
642
|
-
"input":
|
|
643
|
-
"output":
|
|
644
|
-
"cache_read":
|
|
645
|
-
"cache_write":
|
|
626
|
+
"input": 10,
|
|
627
|
+
"output": 50,
|
|
628
|
+
"cache_read": 1,
|
|
629
|
+
"cache_write": 12.5
|
|
646
630
|
},
|
|
647
631
|
"provider": {
|
|
648
632
|
"body": {
|
|
@@ -661,47 +645,6 @@
|
|
|
661
645
|
"cache_read": 0.5,
|
|
662
646
|
"cache_write": 6.25
|
|
663
647
|
}
|
|
664
|
-
},
|
|
665
|
-
"claude-sonnet-4-5": {
|
|
666
|
-
"id": "claude-sonnet-4-5",
|
|
667
|
-
"name": "Claude Sonnet 4.5 (latest)",
|
|
668
|
-
"description": "Balanced Claude model for coding, analysis, agent workflows, and cost control",
|
|
669
|
-
"family": "claude-sonnet",
|
|
670
|
-
"attachment": true,
|
|
671
|
-
"reasoning": true,
|
|
672
|
-
"reasoning_options": [
|
|
673
|
-
{
|
|
674
|
-
"type": "budget_tokens",
|
|
675
|
-
"min": 1024
|
|
676
|
-
}
|
|
677
|
-
],
|
|
678
|
-
"tool_call": true,
|
|
679
|
-
"structured_output": true,
|
|
680
|
-
"temperature": true,
|
|
681
|
-
"knowledge": "2025-07-31",
|
|
682
|
-
"release_date": "2025-09-29",
|
|
683
|
-
"last_updated": "2025-09-29",
|
|
684
|
-
"modalities": {
|
|
685
|
-
"input": [
|
|
686
|
-
"text",
|
|
687
|
-
"image",
|
|
688
|
-
"pdf"
|
|
689
|
-
],
|
|
690
|
-
"output": [
|
|
691
|
-
"text"
|
|
692
|
-
]
|
|
693
|
-
},
|
|
694
|
-
"open_weights": false,
|
|
695
|
-
"limit": {
|
|
696
|
-
"context": 1000000,
|
|
697
|
-
"output": 64000
|
|
698
|
-
},
|
|
699
|
-
"cost": {
|
|
700
|
-
"input": 3,
|
|
701
|
-
"output": 15,
|
|
702
|
-
"cache_read": 0.3,
|
|
703
|
-
"cache_write": 3.75
|
|
704
|
-
}
|
|
705
648
|
}
|
|
706
649
|
}
|
|
707
650
|
}
|