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.
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyLLM
4
- VERSION = '1.6.0'
4
+ VERSION = '1.6.1'
5
5
  end
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.0
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: A delightful Ruby way to work with AI. Tired of juggling different SDKs?
125
- RubyLLM provides one beautiful, Ruby-like interface for OpenAI, Anthropic, Gemini,
126
- Bedrock, OpenRouter, DeepSeek, Ollama, and any OpenAI-compatible API. Chat (with
127
- text, images, audio, PDFs), generate images, create embeddings, use tools (function
128
- calling), stream responses, and integrate with Rails effortlessly. Minimal dependencies,
129
- maximum developer happiness - just clean Ruby code that works.
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: A single delightful Ruby way to work with AI.
270
+ summary: One beautiful Ruby API for GPT, Claude, Gemini, and more.
270
271
  test_files: []