omniai-google 1.3.0 → 1.4.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.rb +0 -14
- data/lib/omniai/google/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1dc0ec04a882a2e35a5d7ff7b613bde89641e57a67ed4a68cdb84ab72d04a982
|
4
|
+
data.tar.gz: a72573e3a57e13b6bf56e33c4133ea4a9ae0c4c3d79688979a8f166345508a6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3cd82fccac3f31b37f9505569ff411d91c9c2a9429fde7308c7b5b34abe922bd4734613f355ed616ff27ff49502c17714d380d0676a2f6f63493fa4baf65c0bc
|
7
|
+
data.tar.gz: c1ac419641eebf177c72a425ac695e5fad10d09cd943998c5952d29ace751234a135eeb009e3000db47869de07db675bbadcddec6cd225ce851641635ffc2550
|
data/lib/omniai/google/chat.rb
CHANGED
@@ -36,20 +36,6 @@ module OmniAI
|
|
36
36
|
}.compact, json: payload)
|
37
37
|
end
|
38
38
|
|
39
|
-
# @param response [HTTP::Response]
|
40
|
-
# @return [OmniAI::Google::Chat::Stream]
|
41
|
-
def stream!(response:)
|
42
|
-
raise Error, "#{self.class.name}#stream! unstreamable" unless @stream
|
43
|
-
|
44
|
-
Stream.new(response:).stream! { |chunk| @stream.call(chunk) }
|
45
|
-
end
|
46
|
-
|
47
|
-
# @param response [HTTP::Response]
|
48
|
-
# @param response [OmniAI::Google::Chat::Completion]
|
49
|
-
def complete!(response:)
|
50
|
-
Completion.new(data: response.parse)
|
51
|
-
end
|
52
|
-
|
53
39
|
# @return [Hash]
|
54
40
|
def payload
|
55
41
|
OmniAI::Google.config.chat_options.merge({
|
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.
|
4
|
+
version: 1.4.0
|
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-
|
11
|
+
date: 2024-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: event_stream_parser
|