omniai-google 1.1.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -0
- data/README.md +2 -0
- 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 +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4985887b388e14ec257b668a3ac086f9d5596afc0ba269f6cfa665d65baec17
|
4
|
+
data.tar.gz: e07bf21fe683e1198d30d82cfeeed9c78c08edbf6d699a0b7d5ca04ec8a918f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8b451d78695af76b98c3f874c31f025149cc0671f93e63450923755167fac1d286e4b175e660391f260b4cb7d5ff924c8e5fcfd9bcc3b39f226e5e616efa823
|
7
|
+
data.tar.gz: 3d122560cbb2d62fa40793d03a4d5911bf4f8ab1976951edf84a794bdcb7dfef7339d9b1f85c593b2b3b3e7ef13f2333c992fa62bb7ce5caae65d2eb274e26f8
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -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::
|
13
|
+
choices << OmniAI::Chat::DeltaChoice.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::
|
13
|
+
entries << OmniAI::Chat::MessageChoice.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.1
|
4
|
+
version: 1.2.1
|
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-06-
|
11
|
+
date: 2024-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: event_stream_parser
|
@@ -70,7 +70,8 @@ files:
|
|
70
70
|
- lib/omniai/google/config.rb
|
71
71
|
- lib/omniai/google/version.rb
|
72
72
|
homepage: https://github.com/ksylvest/omniai-google
|
73
|
-
licenses:
|
73
|
+
licenses:
|
74
|
+
- MIT
|
74
75
|
metadata:
|
75
76
|
homepage_uri: https://github.com/ksylvest/omniai-google
|
76
77
|
changelog_uri: https://github.com/ksylvest/omniai-google/releases
|