ruby_llm 0.1.0.pre41 → 0.1.0.pre43

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.
@@ -20,8 +20,6 @@ module RubyLLM
20
20
  }
21
21
  end
22
22
 
23
- private
24
-
25
23
  def parse_image_response(response)
26
24
  data = response.body
27
25
  image_data = data['data'].first
@@ -47,7 +47,7 @@ module RubyLLM
47
47
  ToolCall.new(
48
48
  id: tc.id,
49
49
  name: tc.name,
50
- arguments: JSON.parse(tc.arguments)
50
+ arguments: tc.arguments.is_a?(String) ? JSON.parse(tc.arguments) : tc.arguments
51
51
  )
52
52
  end
53
53
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyLLM
4
- VERSION = '0.1.0.pre41'
4
+ VERSION = '0.1.0.pre43'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_llm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre41
4
+ version: 0.1.0.pre43
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carmine Paolino
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-02-26 00:00:00.000000000 Z
11
+ date: 2025-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: event_stream_parser
@@ -137,7 +137,13 @@ files:
137
137
  - lib/ruby_llm/providers/deepseek/capabilities.rb
138
138
  - lib/ruby_llm/providers/gemini.rb
139
139
  - lib/ruby_llm/providers/gemini/capabilities.rb
140
+ - lib/ruby_llm/providers/gemini/chat.rb
141
+ - lib/ruby_llm/providers/gemini/embeddings.rb
142
+ - lib/ruby_llm/providers/gemini/images.rb
143
+ - lib/ruby_llm/providers/gemini/media.rb
140
144
  - lib/ruby_llm/providers/gemini/models.rb
145
+ - lib/ruby_llm/providers/gemini/streaming.rb
146
+ - lib/ruby_llm/providers/gemini/tools.rb
141
147
  - lib/ruby_llm/providers/openai.rb
142
148
  - lib/ruby_llm/providers/openai/capabilities.rb
143
149
  - lib/ruby_llm/providers/openai/chat.rb