omniai-google 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniai/google/chat/chunk.rb +1 -1
- data/lib/omniai/google/chat/completion.rb +1 -1
- data/lib/omniai/google/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4acfa6a778a0a95fcd872e39003be1df50dcd9153fc34fd45f886a9373718b4
|
4
|
+
data.tar.gz: 23da85afc3221f24b3c2ef8feeaa0bafd76bb3e210e233325737a1f6d79a8c90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb33abd6e02c108bdeac9d5878782b7f1578c8aae70d767c645a47d27f3715a01d100b01e87d0b23d6ad8defe47a13768b1186f11198d1817520948036c6bc0a
|
7
|
+
data.tar.gz: 2d06795cf2e50b3de545298f42dbe7edb66526a70753c56921c8147dc2625cc8730d0f7abbe61dfdd40cfa859ded3ca1b6c0762f5cb96b09244d7fc7a64c5b17
|
@@ -10,7 +10,7 @@ module OmniAI
|
|
10
10
|
@choices ||= [].tap do |choices|
|
11
11
|
@data['candidates'].each do |candidate|
|
12
12
|
candidate['content']['parts'].each do |part|
|
13
|
-
choices << OmniAI::Chat::Choice.
|
13
|
+
choices << OmniAI::Chat::Choice.for(data: {
|
14
14
|
'index' => candidate['index'],
|
15
15
|
'delta' => { 'role' => candidate['content']['role'], 'content' => part['text'] },
|
16
16
|
})
|
@@ -10,7 +10,7 @@ module OmniAI
|
|
10
10
|
@choices ||= [].tap do |entries|
|
11
11
|
@data['candidates'].each do |candidate|
|
12
12
|
candidate['content']['parts'].each do |part|
|
13
|
-
entries << OmniAI::Chat::Choice.
|
13
|
+
entries << OmniAI::Chat::Choice.for(data: {
|
14
14
|
'index' => candidate['index'],
|
15
15
|
'message' => { 'role' => candidate['content']['role'], 'content' => part['text'] },
|
16
16
|
})
|
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.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Sylvestre
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: event_stream_parser
|
@@ -75,7 +75,7 @@ metadata:
|
|
75
75
|
homepage_uri: https://github.com/ksylvest/omniai-google
|
76
76
|
changelog_uri: https://github.com/ksylvest/omniai-google/releases
|
77
77
|
rubygems_mfa_required: 'true'
|
78
|
-
post_install_message:
|
78
|
+
post_install_message:
|
79
79
|
rdoc_options: []
|
80
80
|
require_paths:
|
81
81
|
- lib
|
@@ -90,8 +90,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
90
|
- !ruby/object:Gem::Version
|
91
91
|
version: '0'
|
92
92
|
requirements: []
|
93
|
-
rubygems_version: 3.5.
|
94
|
-
signing_key:
|
93
|
+
rubygems_version: 3.5.3
|
94
|
+
signing_key:
|
95
95
|
specification_version: 4
|
96
96
|
summary: A generalized framework for interacting with Google
|
97
97
|
test_files: []
|