ruby_llm_swarm 1.9.5 → 1.9.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 250f16e4521232b0043c1efe54c8aebf308128957c8481347f783e7c7a229261
4
- data.tar.gz: 7317b59fa7b49b8982a7d7e8ed6b07bff67de8f9283aea467e5507a2dab8e44e
3
+ metadata.gz: 12a12e4fde5dc0ab19dbe965b7facf5021a1fae79522a741240af5dec8c36cd5
4
+ data.tar.gz: 9832b104f5117b1c6bc0366a544fe4ee664b5ddf341737afeadf52b0fe9b48c6
5
5
  SHA512:
6
- metadata.gz: 8e81b60fda56f5fdb9ec9b6821f05dd63f24fa028e422b08110eebb18ac468a8f0f1289f1d4047f6e868804cf97d34ddc2c043b0b62ee8b88ee1d306f6c81931
7
- data.tar.gz: b87c712097ef18332880b5f057c56363da5221478cb31b0a1c666411e9243a5ff10ecafb58b30b1367e33c3351dec41d5da02e3e9f4b47c71904d0179cf18593
6
+ metadata.gz: 3ec87ccfa7f3e9f5050b67fb9d1171c0d18b55e08100eb493dc082199bce22610a12d4f46bdee028ba60d5c0076d3de1f6f5345c8c82af7e601fb1491cd4ae8e
7
+ data.tar.gz: fe46dd673b7c7aac82c52b186e0fcfd993c4524bf4d85c6b7c31ef6f7d3c948708b0e2ca1274cad7ac98afac1e6a9810e32279d11b5cd41f8db5b826ad27f9a1
@@ -8,6 +8,7 @@ module RubyLLM
8
8
  :openai_organization_id,
9
9
  :openai_project_id,
10
10
  :openai_use_system_role,
11
+ :anthropic_api_base,
11
12
  :anthropic_api_key,
12
13
  :gemini_api_key,
13
14
  :gemini_api_base,
@@ -5,7 +5,7 @@
5
5
  "provider": "anthropic",
6
6
  "family": "claude-haiku-4-5",
7
7
  "created_at": null,
8
- "context_window": null,
8
+ "context_window": 200000,
9
9
  "max_output_tokens": 64000,
10
10
  "knowledge_cutoff": null,
11
11
  "modalities": {
@@ -36,7 +36,7 @@
36
36
  "provider": "anthropic",
37
37
  "family": "claude-haiku-4-5",
38
38
  "created_at": null,
39
- "context_window": null,
39
+ "context_window": 200000,
40
40
  "max_output_tokens": 64000,
41
41
  "knowledge_cutoff": null,
42
42
  "modalities": {
@@ -67,7 +67,7 @@
67
67
  "provider": "anthropic",
68
68
  "family": "claude-opus-4-1",
69
69
  "created_at": null,
70
- "context_window": null,
70
+ "context_window": 200000,
71
71
  "max_output_tokens": 32000,
72
72
  "knowledge_cutoff": null,
73
73
  "modalities": {
@@ -98,7 +98,7 @@
98
98
  "provider": "anthropic",
99
99
  "family": "claude-opus-4-1",
100
100
  "created_at": null,
101
- "context_window": null,
101
+ "context_window": 200000,
102
102
  "max_output_tokens": 32000,
103
103
  "knowledge_cutoff": null,
104
104
  "modalities": {
@@ -123,13 +123,75 @@
123
123
  },
124
124
  "metadata": {}
125
125
  },
126
+ {
127
+ "id": "claude-opus-4-5",
128
+ "name": "Claude Opus 4.5",
129
+ "provider": "anthropic",
130
+ "family": "claude-opus-4-5",
131
+ "created_at": null,
132
+ "context_window": 200000,
133
+ "max_output_tokens": 64000,
134
+ "knowledge_cutoff": null,
135
+ "modalities": {
136
+ "input": [
137
+ "image",
138
+ "text"
139
+ ],
140
+ "output": [
141
+ "text"
142
+ ]
143
+ },
144
+ "capabilities": [
145
+ "function_calling"
146
+ ],
147
+ "pricing": {
148
+ "text_tokens": {
149
+ "standard": {
150
+ "input_per_million": 5.0,
151
+ "output_per_million": 25.0
152
+ }
153
+ }
154
+ },
155
+ "metadata": {}
156
+ },
157
+ {
158
+ "id": "claude-opus-4-5-20251101",
159
+ "name": "Claude Opus 4.5",
160
+ "provider": "anthropic",
161
+ "family": "claude-opus-4-5",
162
+ "created_at": null,
163
+ "context_window": 200000,
164
+ "max_output_tokens": 64000,
165
+ "knowledge_cutoff": null,
166
+ "modalities": {
167
+ "input": [
168
+ "image",
169
+ "text"
170
+ ],
171
+ "output": [
172
+ "text"
173
+ ]
174
+ },
175
+ "capabilities": [
176
+ "function_calling"
177
+ ],
178
+ "pricing": {
179
+ "text_tokens": {
180
+ "standard": {
181
+ "input_per_million": 5.0,
182
+ "output_per_million": 25.0
183
+ }
184
+ }
185
+ },
186
+ "metadata": {}
187
+ },
126
188
  {
127
189
  "id": "claude-sonnet-4-5",
128
190
  "name": "Claude Sonnet 4.5",
129
191
  "provider": "anthropic",
130
192
  "family": "claude-sonnet-4-5",
131
193
  "created_at": null,
132
- "context_window": 1000000,
194
+ "context_window": 200000,
133
195
  "max_output_tokens": 64000,
134
196
  "knowledge_cutoff": null,
135
197
  "modalities": {
@@ -160,7 +222,7 @@
160
222
  "provider": "anthropic",
161
223
  "family": "claude-sonnet-4-5",
162
224
  "created_at": null,
163
- "context_window": 1000000,
225
+ "context_window": 200000,
164
226
  "max_output_tokens": 64000,
165
227
  "knowledge_cutoff": null,
166
228
  "modalities": {
@@ -223,7 +285,7 @@
223
285
  "provider": "deepseek",
224
286
  "family": "deepseek-reasoner",
225
287
  "created_at": null,
226
- "context_window": null,
288
+ "context_window": 128000,
227
289
  "max_output_tokens": 64000,
228
290
  "knowledge_cutoff": null,
229
291
  "modalities": {
@@ -238,7 +300,46 @@
238
300
  "function_calling",
239
301
  "structured_output"
240
302
  ],
241
- "pricing": {},
303
+ "pricing": {
304
+ "text_tokens": {
305
+ "standard": {
306
+ "input_per_million": 0.28,
307
+ "cached_input_per_million": 0.028,
308
+ "output_per_million": 0.42
309
+ }
310
+ }
311
+ },
312
+ "metadata": {}
313
+ },
314
+ {
315
+ "id": "deepseek-reasoner-speciale",
316
+ "name": "deepseek-reasoner(1)",
317
+ "provider": "deepseek",
318
+ "family": "deepseek-reasoner-speciale",
319
+ "created_at": null,
320
+ "context_window": 128000,
321
+ "max_output_tokens": 128000,
322
+ "knowledge_cutoff": null,
323
+ "modalities": {
324
+ "input": [
325
+ "text"
326
+ ],
327
+ "output": [
328
+ "text"
329
+ ]
330
+ },
331
+ "capabilities": [
332
+ "function_calling"
333
+ ],
334
+ "pricing": {
335
+ "text_tokens": {
336
+ "standard": {
337
+ "input_per_million": 0.28,
338
+ "cached_input_per_million": 0.028,
339
+ "output_per_million": 0.42
340
+ }
341
+ }
342
+ },
242
343
  "metadata": {}
243
344
  },
244
345
  {
@@ -791,19 +892,13 @@
791
892
  "audio"
792
893
  ]
793
894
  },
794
- "capabilities": [
795
- "batch"
796
- ],
895
+ "capabilities": [],
797
896
  "pricing": {
798
897
  "text_tokens": {
799
898
  "standard": {
800
899
  "input_per_million": 0.3,
801
900
  "cached_input_per_million": 0.03,
802
901
  "output_per_million": 2.5
803
- },
804
- "batch": {
805
- "input_per_million": 0.15,
806
- "output_per_million": 1.25
807
902
  }
808
903
  }
809
904
  },
@@ -850,7 +945,7 @@
850
945
  },
851
946
  {
852
947
  "id": "gemini-2.5-pro-preview-tts",
853
- "name": "Gemini 2.5 Pro TTS",
948
+ "name": "Gemini 2.5 Pro Preview TTS",
854
949
  "provider": "gemini",
855
950
  "family": "gemini-2.5-pro-preview-tts",
856
951
  "created_at": null,
@@ -900,7 +995,18 @@
900
995
  "batch",
901
996
  "structured_output"
902
997
  ],
903
- "pricing": {},
998
+ "pricing": {
999
+ "text_tokens": {
1000
+ "standard": {
1001
+ "input_per_million": 2.0,
1002
+ "output_per_million": 12.0
1003
+ },
1004
+ "batch": {
1005
+ "input_per_million": 1.0,
1006
+ "output_per_million": 6.0
1007
+ }
1008
+ }
1009
+ },
904
1010
  "metadata": {}
905
1011
  },
906
1012
  {
@@ -1157,8 +1263,7 @@
1157
1263
  ],
1158
1264
  "output": [
1159
1265
  "embeddings",
1160
- "image",
1161
- "text"
1266
+ "image"
1162
1267
  ]
1163
1268
  },
1164
1269
  "capabilities": [],
@@ -1175,7 +1280,9 @@
1175
1280
  "max_output_tokens": null,
1176
1281
  "knowledge_cutoff": null,
1177
1282
  "modalities": {
1178
- "input": [],
1283
+ "input": [
1284
+ "text"
1285
+ ],
1179
1286
  "output": [
1180
1287
  "embeddings",
1181
1288
  "image"
@@ -1774,7 +1881,7 @@
1774
1881
  "metadata": {}
1775
1882
  },
1776
1883
  {
1777
- "id": "gpt-4o-2023-01-01",
1884
+ "id": "gpt-4o-2024-08-06",
1778
1885
  "name": "GPT-4o",
1779
1886
  "provider": "openai",
1780
1887
  "family": "gpt-4o",
@@ -2130,10 +2237,12 @@
2130
2237
  "knowledge_cutoff": null,
2131
2238
  "modalities": {
2132
2239
  "input": [
2133
- "audio"
2240
+ "audio",
2241
+ "text"
2134
2242
  ],
2135
2243
  "output": [
2136
- "embeddings"
2244
+ "embeddings",
2245
+ "text"
2137
2246
  ]
2138
2247
  },
2139
2248
  "capabilities": [],
@@ -2291,9 +2400,7 @@
2291
2400
  "text"
2292
2401
  ]
2293
2402
  },
2294
- "capabilities": [
2295
- "structured_output"
2296
- ],
2403
+ "capabilities": [],
2297
2404
  "pricing": {
2298
2405
  "text_tokens": {
2299
2406
  "standard": {
@@ -2323,9 +2430,7 @@
2323
2430
  "text"
2324
2431
  ]
2325
2432
  },
2326
- "capabilities": [
2327
- "structured_output"
2328
- ],
2433
+ "capabilities": [],
2329
2434
  "pricing": {
2330
2435
  "text_tokens": {
2331
2436
  "standard": {
@@ -4041,19 +4146,18 @@
4041
4146
  "max_output_tokens": null,
4042
4147
  "knowledge_cutoff": null,
4043
4148
  "modalities": {
4044
- "input": [],
4149
+ "input": [
4150
+ "image",
4151
+ "text"
4152
+ ],
4045
4153
  "output": [
4046
- "embeddings"
4154
+ "audio",
4155
+ "embeddings",
4156
+ "image"
4047
4157
  ]
4048
4158
  },
4049
4159
  "capabilities": [],
4050
- "pricing": {
4051
- "text_tokens": {
4052
- "standard": {
4053
- "input_per_million": 0.1
4054
- }
4055
- }
4056
- },
4160
+ "pricing": {},
4057
4161
  "metadata": {}
4058
4162
  },
4059
4163
  {
@@ -4066,15 +4170,16 @@
4066
4170
  "max_output_tokens": null,
4067
4171
  "knowledge_cutoff": null,
4068
4172
  "modalities": {
4069
- "input": [],
4173
+ "input": [
4174
+ "image",
4175
+ "text"
4176
+ ],
4070
4177
  "output": [
4071
4178
  "audio",
4072
4179
  "embeddings"
4073
4180
  ]
4074
4181
  },
4075
- "capabilities": [
4076
- "structured_output"
4077
- ],
4182
+ "capabilities": [],
4078
4183
  "pricing": {},
4079
4184
  "metadata": {}
4080
4185
  },
@@ -4097,8 +4202,7 @@
4097
4202
  ]
4098
4203
  },
4099
4204
  "capabilities": [
4100
- "batch",
4101
- "structured_output"
4205
+ "batch"
4102
4206
  ],
4103
4207
  "pricing": {
4104
4208
  "text_tokens": {
@@ -4139,8 +4243,7 @@
4139
4243
  ]
4140
4244
  },
4141
4245
  "capabilities": [
4142
- "batch",
4143
- "structured_output"
4246
+ "batch"
4144
4247
  ],
4145
4248
  "pricing": {
4146
4249
  "text_tokens": {
@@ -4172,9 +4275,12 @@
4172
4275
  "max_output_tokens": null,
4173
4276
  "knowledge_cutoff": null,
4174
4277
  "modalities": {
4175
- "input": [],
4278
+ "input": [
4279
+ "text"
4280
+ ],
4176
4281
  "output": [
4177
- "embeddings"
4282
+ "embeddings",
4283
+ "text"
4178
4284
  ]
4179
4285
  },
4180
4286
  "capabilities": [
@@ -4218,9 +4324,7 @@
4218
4324
  "text"
4219
4325
  ]
4220
4326
  },
4221
- "capabilities": [
4222
- "structured_output"
4223
- ],
4327
+ "capabilities": [],
4224
4328
  "pricing": {},
4225
4329
  "metadata": {}
4226
4330
  },
@@ -4256,7 +4360,9 @@
4256
4360
  "max_output_tokens": null,
4257
4361
  "knowledge_cutoff": null,
4258
4362
  "modalities": {
4259
- "input": [],
4363
+ "input": [
4364
+ "text"
4365
+ ],
4260
4366
  "output": [
4261
4367
  "audio",
4262
4368
  "embeddings"
@@ -4266,7 +4372,7 @@
4266
4372
  "pricing": {
4267
4373
  "text_tokens": {
4268
4374
  "standard": {
4269
- "output_per_million": 15.0
4375
+ "input_per_million": 15.0
4270
4376
  }
4271
4377
  }
4272
4378
  },
@@ -4290,13 +4396,11 @@
4290
4396
  "embeddings"
4291
4397
  ]
4292
4398
  },
4293
- "capabilities": [
4294
- "structured_output"
4295
- ],
4399
+ "capabilities": [],
4296
4400
  "pricing": {
4297
4401
  "text_tokens": {
4298
4402
  "standard": {
4299
- "output_per_million": 30.0
4403
+ "input_per_million": 30.0
4300
4404
  }
4301
4405
  }
4302
4406
  },
@@ -4317,7 +4421,8 @@
4317
4421
  ],
4318
4422
  "output": [
4319
4423
  "audio",
4320
- "embeddings"
4424
+ "embeddings",
4425
+ "text"
4321
4426
  ]
4322
4427
  },
4323
4428
  "capabilities": [],
@@ -8,7 +8,7 @@ module RubyLLM
8
8
  module_function
9
9
 
10
10
  def completion_url
11
- '/v1/messages'
11
+ 'v1/messages'
12
12
  end
13
13
 
14
14
  def render_payload(messages, tools:, temperature:, model:, stream: false, schema: nil) # rubocop:disable Metrics/ParameterLists,Lint/UnusedMethodArgument
@@ -8,7 +8,7 @@ module RubyLLM
8
8
  module_function
9
9
 
10
10
  def models_url
11
- '/v1/models'
11
+ 'v1/models'
12
12
  end
13
13
 
14
14
  def parse_list_models_response(response, slug, capabilities)
@@ -12,7 +12,7 @@ module RubyLLM
12
12
  include Anthropic::Tools
13
13
 
14
14
  def api_base
15
- 'https://api.anthropic.com'
15
+ @config.anthropic_api_base || 'https://api.anthropic.com'
16
16
  end
17
17
 
18
18
  def headers
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyLLM
4
- VERSION = '1.9.5'
4
+ VERSION = '1.9.6'
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_llm_swarm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.5
4
+ version: 1.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paulo Arruda
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 1980-01-02 00:00:00.000000000 Z
10
+ date: 1980-01-01 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: async-http-faraday