ruby_llm 1.13.1 → 1.13.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/lib/ruby_llm/aliases.json +10 -0
- data/lib/ruby_llm/chat.rb +6 -1
- data/lib/ruby_llm/models.json +1390 -589
- data/lib/ruby_llm/models.rb +3 -2
- data/lib/ruby_llm/streaming.rb +1 -1
- data/lib/ruby_llm/version.rb +1 -1
- metadata +1 -1
data/lib/ruby_llm/models.rb
CHANGED
|
@@ -312,14 +312,15 @@ module RubyLLM
|
|
|
312
312
|
modalities = normalize_models_dev_modalities(model_data[:modalities])
|
|
313
313
|
capabilities = models_dev_capabilities(model_data, modalities)
|
|
314
314
|
|
|
315
|
-
created_date = model_data[:release_date]
|
|
315
|
+
created_date = [model_data[:release_date], model_data[:last_updated]]
|
|
316
|
+
.find { |value| !value.to_s.strip.empty? }
|
|
316
317
|
|
|
317
318
|
data = {
|
|
318
319
|
id: model_data[:id],
|
|
319
320
|
name: model_data[:name] || model_data[:id],
|
|
320
321
|
provider: provider_slug,
|
|
321
322
|
family: model_data[:family],
|
|
322
|
-
created_at: "#{created_date} 00:00:00 UTC",
|
|
323
|
+
created_at: created_date ? "#{created_date} 00:00:00 UTC" : nil,
|
|
323
324
|
context_window: model_data.dig(:limit, :context),
|
|
324
325
|
max_output_tokens: model_data.dig(:limit, :output),
|
|
325
326
|
knowledge_cutoff: normalize_models_dev_knowledge(model_data[:knowledge]),
|
data/lib/ruby_llm/streaming.rb
CHANGED
data/lib/ruby_llm/version.rb
CHANGED