omniai-mistral 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/mistral/chat.rb +2 -0
- data/lib/omniai/mistral/client.rb +2 -2
- data/lib/omniai/mistral/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: 06a0ef7934fc23948925d5c35b75898df7148f162564db8a59fffa9106efa8d8
|
4
|
+
data.tar.gz: 22edea50f3d9a71b3ef659fd731078730adec47cc46190208fe30022a37a9d2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 506d07b0b05993c88c540778d3116f608dc3740726e6f0453a72ac444c8b9139c2020476fc3c1627f581a8fcb83e4c11113048b58feda99381f6480b56f1eaed
|
7
|
+
data.tar.gz: 0e8dae928a6d2d64ac459ce48d370bc866516f133fc8e60d14a581deb62ff6761cb3480a294ee8c5afb95a675d9ebc0e4887ec5683f8a80872f9bb8afcfd8447
|
data/lib/omniai/mistral/chat.rb
CHANGED
@@ -44,7 +44,7 @@ module OmniAI
|
|
44
44
|
|
45
45
|
# @raise [OmniAI::Error]
|
46
46
|
#
|
47
|
-
# @param messages [String
|
47
|
+
# @param messages [String] optional
|
48
48
|
# @param model [String] optional
|
49
49
|
# @param format [Symbol] optional :text or :json
|
50
50
|
# @param temperature [Float, nil] optional
|
@@ -55,7 +55,7 @@ module OmniAI
|
|
55
55
|
# @yieldparam prompt [OmniAI::Chat::Prompt]
|
56
56
|
#
|
57
57
|
# @return [OmniAI::Chat::Completion]
|
58
|
-
def chat(messages, model: Chat::
|
58
|
+
def chat(messages = nil, model: Chat::DEFAULT_MODEL, temperature: nil, format: nil, stream: nil, tools: nil, &)
|
59
59
|
Chat.process!(messages, model:, temperature:, format:, stream:, tools:, client: self, &)
|
60
60
|
end
|
61
61
|
end
|