omniai 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 +4 -4
- data/lib/omniai/client.rb +2 -2
- data/lib/omniai/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee3875380bef07417246342465e621d52dcaf30bf7fff0beb99e341cb61d5258
|
4
|
+
data.tar.gz: 9bc2db4fd5dbdc456810753e0738c4da0481670c84d3c18f6f7ca310cd0d5514
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d61725b7ed361b560d90a5887084dcaee519dca4b509fbf0a4335f10106647a577b6f852c51fd2341fa9f3be361e29d5341fd1572f068317f278651fbe6323e9
|
7
|
+
data.tar.gz: 7ed311f56483076821f7906f30c6ebc8ce21798f4a03bf2bfaab4d5bab66c56c5f9a61ffb95cc32f988e91bcac32d90fc1b15df0bca14a0e7bbfe858037b510b
|
data/lib/omniai/client.rb
CHANGED
@@ -124,7 +124,7 @@ module OmniAI
|
|
124
124
|
|
125
125
|
# @raise [OmniAI::Error]
|
126
126
|
#
|
127
|
-
# @param messages [String
|
127
|
+
# @param messages [String] optional
|
128
128
|
# @param model [String] optional
|
129
129
|
# @param format [Symbol] optional :text or :json
|
130
130
|
# @param temperature [Float, nil] optional
|
@@ -135,7 +135,7 @@ module OmniAI
|
|
135
135
|
# @yieldparam prompt [OmniAI::Chat::Prompt]
|
136
136
|
#
|
137
137
|
# @return [OmniAI::Chat::Completion]
|
138
|
-
def chat(messages, model:, temperature: nil, format: nil, stream: nil, tools: nil, &)
|
138
|
+
def chat(messages = nil, model:, temperature: nil, format: nil, stream: nil, tools: nil, &)
|
139
139
|
raise NotImplementedError, "#{self.class.name}#chat undefined"
|
140
140
|
end
|
141
141
|
|
data/lib/omniai/version.rb
CHANGED