omniai-openai 1.6.1 → 1.6.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: 3ff87839fda74772081155dca341df25a7112ac9fb40940d3a9ce027702f78fa
4
- data.tar.gz: c4f892dc84bf3c9c6f914dbf19912c34add5f30d486ddaef5d4a72122ecc42bb
3
+ metadata.gz: 99efbb2cd49fcc32c8c4934ad0081b18b0e6eba09056b5418e9040d1c62a649a
4
+ data.tar.gz: 44bebce8f96c0203a3a9a64d5f1661e5c247dbb1030eff85c75cdc641fc72534
5
5
  SHA512:
6
- metadata.gz: ecea745e019e298450b06485dc8283d66e2a3bb0e0562a54ee6c55c358b1e687afb1c7f9f34e9b45a495189ca282651183fdd47983492f554ce68a6125277529
7
- data.tar.gz: e1834ffed43d4db32b430bdf7150af21250d7757adf87c5dbc5912162598038f661ba24b24aaa6ac4cf078c9db7d32e7ec1d0a1c79c79e52dac94d2f27f74991
6
+ metadata.gz: 22ca0c4580a73126a7e5fee444b52da77d4dbbac6442d04d9ff848bc0f1b5eb00acc249f9db6671fdf0474ec273adf0cc57f5edc8ca0e90792686b40e574a692
7
+ data.tar.gz: 49ab6aec6a2d795c052a9cd3a546061028367e5d18a0e60281525c02d6e9a62e6fad12733d914c4bf2326c154738a7cb8857611dbf945986f0db49924649fceb
@@ -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.2'
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.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Sylvestre