omniai-google 1.8.0 → 1.8.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 07e400994624881af7790d3a209eb28030237a4684d319edc11ebb8dc7052f2c
4
- data.tar.gz: e9ea6d986267343627c9cc8d061aaea673f4cbaba35a6fffdd113e49fe674278
3
+ metadata.gz: a94a269754cf5575f61c30d06d0e37eae9e81a5f39b8d5c57d6bb20466b0c4b7
4
+ data.tar.gz: 1cc25309962eaa19124d1f524283168b45268f518c5cbba823f288dc10ae6db9
5
5
  SHA512:
6
- metadata.gz: cc5d0209e6024d8860f8aa619e8bdc76469863f314d66810d5b525674c417d4a79d57f5ad0ac404401214cf29e7606ee8a2669026609780f563a173351048b5a
7
- data.tar.gz: c0958efb3190c4df770d49862fdf3370584c4533dc8925350fb194490f3da5cefd5de58c7e47fda14bf76803575e438505fdaf13d00f6693e363c6cc2ed42ef7
6
+ metadata.gz: ffadc476993045df0e1970c1733ee127f253ba043098b834275365de5c13dbeb6f6f1a8aef5aa93b903b87d514e30a52ad6059b50a7e11edd4774e9ca27049c1
7
+ data.tar.gz: cc5613811897cd7e3f2171c8ea8cfc2b841d32247adfda2500543bb39e38362569eac6a1dc9febbc258a0ee62239ac545a7ea718646fa0b06f2d53f775070619
@@ -10,7 +10,7 @@ module OmniAI
10
10
  {
11
11
  name: tool.name,
12
12
  description: tool.description,
13
- parameters: tool.parameters&.prepare,
13
+ parameters: tool.parameters.is_a?(Tool::Parameters) ? tool.parameters.serialize : tool.parameters,
14
14
  }
15
15
  end
16
16
  end
@@ -89,7 +89,7 @@ module OmniAI
89
89
 
90
90
  # @return [Hash]
91
91
  def tools
92
- return unless @tools
92
+ return unless @tools&.any?
93
93
 
94
94
  [
95
95
  function_declarations: @tools.map { |tool| tool.serialize(context:) },
@@ -10,7 +10,7 @@ module OmniAI
10
10
  end
11
11
 
12
12
  DEFAULT_HOST = 'https://generativelanguage.googleapis.com'
13
- DEFAULT_VERSION = Version::STABLE
13
+ DEFAULT_VERSION = Version::BETA
14
14
 
15
15
  # @!attribute [rw] version
16
16
  # @return [String, nil]
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAI
4
4
  module Google
5
- VERSION = '1.8.0'
5
+ VERSION = '1.8.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniai-google
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Sylvestre
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-16 00:00:00.000000000 Z
11
+ date: 2024-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: event_stream_parser