omniai-google 1.8.1 → 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: 7c10ff758ef3b97bfda6e7777bbdb07f70f4d48eec2ed83a16d40ff218c1ad0c
4
- data.tar.gz: 530abe5f05bb1a00531ce5e9688622d4b2ffcdba648f91828051d401e251c696
3
+ metadata.gz: a94a269754cf5575f61c30d06d0e37eae9e81a5f39b8d5c57d6bb20466b0c4b7
4
+ data.tar.gz: 1cc25309962eaa19124d1f524283168b45268f518c5cbba823f288dc10ae6db9
5
5
  SHA512:
6
- metadata.gz: 84fa7dcd0046e15f573dd93ed96e85a69e432e01ec7114eda1b02e7c38769e2a508fa82d1ec7b869c5517f7caee5f79a10e290597b71b819eb24b63c73e801b1
7
- data.tar.gz: 11367206b9ad7392ef6184691168a9a57bbad972aca66427a8ae69a25386c5283b42d76490000a90fadd9b5de8370d213fde3f9bc88185018dba500b6fef598f
6
+ metadata.gz: ffadc476993045df0e1970c1733ee127f253ba043098b834275365de5c13dbeb6f6f1a8aef5aa93b903b87d514e30a52ad6059b50a7e11edd4774e9ca27049c1
7
+ data.tar.gz: cc5613811897cd7e3f2171c8ea8cfc2b841d32247adfda2500543bb39e38362569eac6a1dc9febbc258a0ee62239ac545a7ea718646fa0b06f2d53f775070619
@@ -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.1'
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.1
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-19 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