omniai-openai 1.6.1 → 1.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ff87839fda74772081155dca341df25a7112ac9fb40940d3a9ce027702f78fa
4
- data.tar.gz: c4f892dc84bf3c9c6f914dbf19912c34add5f30d486ddaef5d4a72122ecc42bb
3
+ metadata.gz: dceac1ba096564c04a795101feeebde7e5014b901d6cb1dd479cc7701d38bd3c
4
+ data.tar.gz: a1ef0a834eec86b0a5072811580259700b704abadedd29965b649b127f2aba50
5
5
  SHA512:
6
- metadata.gz: ecea745e019e298450b06485dc8283d66e2a3bb0e0562a54ee6c55c358b1e687afb1c7f9f34e9b45a495189ca282651183fdd47983492f554ce68a6125277529
7
- data.tar.gz: e1834ffed43d4db32b430bdf7150af21250d7757adf87c5dbc5912162598038f661ba24b24aaa6ac4cf078c9db7d32e7ec1d0a1c79c79e52dac94d2f27f74991
6
+ metadata.gz: 51e5373e55921c3768a1d245fd9e9b14b2c0e7a842088504ce51e9b23627df9df640b4fcbc633f34f89a53bc0079d4516fed4074c0ab445be1fb67d8ff008a49
7
+ data.tar.gz: aebd0db9486e9df3ae9370e6c089bdd211f745bcb6146e457c80417325fc4004492050dcefa667284963379915030ac20c84dfeb8e831ce135542d2aa2a7eaec
@@ -16,6 +16,7 @@ module OmniAI
16
16
 
17
17
  module Model
18
18
  GPT_4O = 'gpt-4o'
19
+ GPT_4O_MINI = 'gpt-4o-mini'
19
20
  GPT_4 = 'gpt-4'
20
21
  GPT_4_TURBO = 'gpt-4-turbo'
21
22
  GPT_3_5_TURBO = 'gpt-3.5-turbo'
@@ -62,7 +62,7 @@ module OmniAI
62
62
 
63
63
  # @raise [OmniAI::Error]
64
64
  #
65
- # @param messages [String, Array, Hash]
65
+ # @param messages [String] optional
66
66
  # @param model [String] optional
67
67
  # @param format [Symbol] optional :text or :json
68
68
  # @param temperature [Float, nil] optional
@@ -73,7 +73,7 @@ module OmniAI
73
73
  # @yieldparam prompt [OmniAI::Chat::Prompt]
74
74
  #
75
75
  # @return [OmniAI::Chat::Completion]
76
- def chat(messages, model: Chat::DEFAULT_MODEL, temperature: nil, format: nil, stream: nil, tools: nil, &)
76
+ def chat(messages = nil, model: Chat::DEFAULT_MODEL, temperature: nil, format: nil, stream: nil, tools: nil, &)
77
77
  Chat.process!(messages, model:, temperature:, format:, stream:, tools:, client: self, &)
78
78
  end
79
79
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAI
4
4
  module OpenAI
5
- VERSION = '1.6.1'
5
+ VERSION = '1.6.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniai-openai
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Sylvestre