omniai-google 2.0.0 → 2.2.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 920c87f6c8f91437a1a5580caf2c838521047d734413762776c5d3e7415bda12
4
- data.tar.gz: be11205e829fbf12049d9a14b65b3432bdfdb38a377d6ed1958294a8c04d8ef1
3
+ metadata.gz: 2c0e81a12702acac4c59da29e174f77c053d068856063a0752e7f1e86dfa9870
4
+ data.tar.gz: 05e0cc7cc84038408a94769eb8d1b30c5fdbccd3f4ee21847d50721d64e8e41f
5
5
  SHA512:
6
- metadata.gz: 9001c4da34477f01fd0a0fe410885f7be12e2cc5fe575f31071d5716605567ef55a7184af34d9c758266bbac46a42fddff53884f9c51cf309cd7f51ae671149f
7
- data.tar.gz: b6938cfad64524232b79053b37c59bf15151c381e1ad0c09283369ea9829e47a9686f2177ad782cfb5cf71db1a5e0ab6085c7c8ac7c3edd1e38758496b4c3a26
6
+ metadata.gz: 769fd0c52d6e83fb4bd90e5075e0cc332aca7deb6c56b16808175a0abf0cef97cef55c8991702550747e1b0672e0aec057ad9c8b98c94065f8943ea4a40904d9
7
+ data.tar.gz: 8b4f33b903fb5acc6744a85869f8be69113c3b7f0c4b5e0150aed8283aa2747a5c174e564a956963f0d152e27177ff159aa36776bedf7ade83f4fb5bb89f6382
@@ -15,6 +15,7 @@ module OmniAI
15
15
  module Model
16
16
  GEMINI_1_0_PRO = "gemini-1.0-pro"
17
17
  GEMINI_1_5_PRO = "gemini-1.5-pro"
18
+ GEMINI_2_5_PRO = "gemini-2.5-pro-exp-03-25"
18
19
  GEMINI_1_5_FLASH = "gemini-1.5-flash"
19
20
  GEMINI_2_0_FLASH = "gemini-2.0-flash"
20
21
  GEMINI_PRO = GEMINI_1_5_PRO
@@ -73,7 +74,7 @@ module OmniAI
73
74
  .accept(:json)
74
75
  .post(path, params: {
75
76
  key: @client.api_key,
76
- alt: ("sse" if @stream),
77
+ alt: ("sse" if stream?),
77
78
  }.compact, json: payload)
78
79
  end
79
80
 
@@ -121,7 +122,7 @@ module OmniAI
121
122
 
122
123
  # @return [String]
123
124
  def operation
124
- @stream ? "streamGenerateContent" : "generateContent"
125
+ stream? ? "streamGenerateContent" : "generateContent"
125
126
  end
126
127
 
127
128
  # @return [Array<Message>]
@@ -41,7 +41,7 @@ module OmniAI
41
41
  arrayify(@input).map do |text|
42
42
  {
43
43
  model: "models/#{@model}",
44
- content: { parts: [{ text: text }] },
44
+ content: { parts: [{ text: }] },
45
45
  }
46
46
  end
47
47
  end
@@ -29,7 +29,7 @@ module OmniAI
29
29
  # @return [File]
30
30
  def self.parse(client:, data:)
31
31
  new(
32
- client: client,
32
+ client:,
33
33
  name: data["name"],
34
34
  uri: data["uri"],
35
35
  state: data["state"],
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAI
4
4
  module Google
5
- VERSION = "2.0.0"
5
+ VERSION = "2.2.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniai-google
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Sylvestre
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-03-03 00:00:00.000000000 Z
10
+ date: 2025-03-27 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: event_stream_parser
@@ -29,14 +29,14 @@ dependencies:
29
29
  requirements:
30
30
  - - "~>"
31
31
  - !ruby/object:Gem::Version
32
- version: '2.0'
32
+ version: '2.2'
33
33
  type: :runtime
34
34
  prerelease: false
35
35
  version_requirements: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '2.0'
39
+ version: '2.2'
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: zeitwerk
42
42
  requirement: !ruby/object:Gem::Requirement