omniai-openai 1.8.0 → 1.8.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0bc756e1ccefb9777b3103759fd819b73d39ee71fccf8eacb01d53c93b80b5cd
4
- data.tar.gz: 752e9be7a594471210e6f85aeefb0443a917ebe2bc1eea776aa8cdcd34c5fe12
3
+ metadata.gz: 8e2977b31559860cd16a54dca1b749d917f9a5146110b4bf6f0b42b8d11eab60
4
+ data.tar.gz: 30463a38bcea6ae3b95490fb9a7e8a3ed2b4d48b75a597ca1ab4476b1fe4ec5d
5
5
  SHA512:
6
- metadata.gz: 4c821761f9616bfda0a2f4ccd8abd203a25a44310a2d4820a6f2f5858bb3d47772b117b0dd1906b01b1e949618673aaf9db6e47e746713cf50a435864f90b6e2
7
- data.tar.gz: 91091db68f9030aa628cfa1669603627c736410c4a449da015d438f2d5b3f9141bb64227679b7b40f8cf67d4960acc4388e92602742bdfda6c9dce88fc5bbf57
6
+ metadata.gz: 17cac920b1ed4f0cbe8097cb86c98e9a5b26d3835d495f1609fb15b0a72169b5566d00f1cc41fbba491a9f0b2b0117f3b9d408e70062920529da7d94e7096d56
7
+ data.tar.gz: 9c7b2bb17652e13df0642648fb6927d9467999375c9532a780d95958f59cd1c66c41900fabd16467074003ed9701ecebcd4c8ba8eaef4694758bdbe23ef8715b
@@ -20,6 +20,8 @@ module OmniAI
20
20
  GPT_4 = 'gpt-4'
21
21
  GPT_4_TURBO = 'gpt-4-turbo'
22
22
  GPT_3_5_TURBO = 'gpt-3.5-turbo'
23
+ O1_MINI = 'o1-mini'
24
+ O1_PREVIEW = 'o1-preview'
23
25
  end
24
26
 
25
27
  DEFAULT_MODEL = Model::GPT_4O
@@ -34,7 +36,7 @@ module OmniAI
34
36
  stream: @stream.nil? ? nil : !@stream.nil?,
35
37
  temperature: @temperature,
36
38
  response_format: (JSON_RESPONSE_FORMAT if @format.eql?(:json)),
37
- tools: @tools&.map(&:serialize),
39
+ tools: (@tools.map(&:serialize) if @tools&.any?),
38
40
  }).compact
39
41
  end
40
42
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAI
4
4
  module OpenAI
5
- VERSION = '1.8.0'
5
+ VERSION = '1.8.2'
6
6
  end
7
7
  end
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.0
4
+ version: 1.8.2
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-16 00:00:00.000000000 Z
11
+ date: 2024-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: event_stream_parser