ruby_llm 1.6.0 → 1.6.1
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/README.md +8 -34
- data/lib/ruby_llm/active_record/acts_as.rb +18 -4
- data/lib/ruby_llm/aliases.json +0 -4
- data/lib/ruby_llm/chat.rb +3 -2
- data/lib/ruby_llm/models.json +337 -739
- data/lib/ruby_llm/providers/openai/capabilities.rb +1 -1
- data/lib/ruby_llm/providers/openai/chat.rb +1 -4
- data/lib/ruby_llm/version.rb +1 -1
- metadata +9 -8
@@ -216,7 +216,7 @@ module RubyLLM
|
|
216
216
|
end
|
217
217
|
|
218
218
|
def self.normalize_temperature(temperature, model_id)
|
219
|
-
if model_id.match?(/^o\d/)
|
219
|
+
if model_id.match?(/^(o\d|gpt-5)/)
|
220
220
|
RubyLLM.logger.debug "Model #{model_id} requires temperature=1.0, ignoring provided value"
|
221
221
|
1.0
|
222
222
|
elsif model_id.match?(/-search/)
|
@@ -21,10 +21,7 @@ module RubyLLM
|
|
21
21
|
# Only include temperature if it's not nil (some models don't accept it)
|
22
22
|
payload[:temperature] = temperature unless temperature.nil?
|
23
23
|
|
24
|
-
if tools.any?
|
25
|
-
payload[:tools] = tools.map { |_, tool| tool_for(tool) }
|
26
|
-
payload[:tool_choice] = 'auto'
|
27
|
-
end
|
24
|
+
payload[:tools] = tools.map { |_, tool| tool_for(tool) } if tools.any?
|
28
25
|
|
29
26
|
if schema
|
30
27
|
# Use strict mode from schema if specified, default to true
|
data/lib/ruby_llm/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_llm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carmine Paolino
|
@@ -121,12 +121,13 @@ dependencies:
|
|
121
121
|
- - "~>"
|
122
122
|
- !ruby/object:Gem::Version
|
123
123
|
version: '2'
|
124
|
-
description:
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
124
|
+
description: One beautiful Ruby API for GPT, Claude, Gemini, and more. Easily build
|
125
|
+
chatbots, AI agents, RAG applications, and content generators. Features chat (text,
|
126
|
+
images, audio, PDFs), image generation, embeddings, tools (function calling), structured
|
127
|
+
output, Rails integration, and streaming. Works with OpenAI, Anthropic, Google Gemini,
|
128
|
+
AWS Bedrock, DeepSeek, Mistral, Ollama (local models), OpenRouter, Perplexity, GPUStack,
|
129
|
+
and any OpenAI-compatible API. Minimal dependencies - just Faraday, Zeitwerk, and
|
130
|
+
Marcel.
|
130
131
|
email:
|
131
132
|
- carmine@paolino.me
|
132
133
|
executables: []
|
@@ -266,5 +267,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
266
267
|
requirements: []
|
267
268
|
rubygems_version: 3.6.9
|
268
269
|
specification_version: 4
|
269
|
-
summary:
|
270
|
+
summary: One beautiful Ruby API for GPT, Claude, Gemini, and more.
|
270
271
|
test_files: []
|