omniai-openai 1.8.0 → 1.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniai/openai/chat.rb +1 -1
- data/lib/omniai/openai/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: 4c4800d2a0c330c63c41ce1fd81e0826be57d5e2c1476561ab10f24164340b16
|
4
|
+
data.tar.gz: 86f73a45fb4a7bd21b2610514375c9a05a89e133a9a9e9706200435f401e09be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0541865c105629a0ac61914e89dce488e776f0c4a26638cab5b0c921530a63eeb44cfa371773dea408aa6b0c052969437437bb02f6ba02f3e3104b4f2c709a3b'
|
7
|
+
data.tar.gz: 471c8f8321841b33e31246f73bf3773b4f384075d2b4277166fa629763bbeabc03e7ec34d9bcb2e2591085db71468e1ee3e0026744bba7def21e14c100bae236
|
data/lib/omniai/openai/chat.rb
CHANGED
@@ -34,7 +34,7 @@ module OmniAI
|
|
34
34
|
stream: @stream.nil? ? nil : !@stream.nil?,
|
35
35
|
temperature: @temperature,
|
36
36
|
response_format: (JSON_RESPONSE_FORMAT if @format.eql?(:json)),
|
37
|
-
tools: @tools
|
37
|
+
tools: (@tools.map(&:serialize) if @tools&.any?),
|
38
38
|
}).compact
|
39
39
|
end
|
40
40
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniai-openai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.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-08-
|
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
|