omniai-mistral 1.6.0 → 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: 253b0ae91739077ea70a562cad40ce7c16ead3a62a7650ae7511f4680e34c96b
4
- data.tar.gz: bfed7d64757f41170581aafdc1726571bb399b2a6ffd845dff9062a2ebf21c7e
3
+ metadata.gz: 06a0ef7934fc23948925d5c35b75898df7148f162564db8a59fffa9106efa8d8
4
+ data.tar.gz: 22edea50f3d9a71b3ef659fd731078730adec47cc46190208fe30022a37a9d2e
5
5
  SHA512:
6
- metadata.gz: a4dee74fcf4169cf99adeaa5239f9c6afa33f90b007b9d8c5e8368c332ab8e6a4b291e482d55429633957a81c40b2871b2e57ecdd98e99eb233fecd101d57ad6
7
- data.tar.gz: 2d3256886c38c5823cf7fcdf2d6d377c2128cc375624aa7c596dd9bb6d308d780a760917b6c6487c18b46a2dbb82636eb05bb82cd692b63146963ecd4b58956f
6
+ metadata.gz: 506d07b0b05993c88c540778d3116f608dc3740726e6f0453a72ac444c8b9139c2020476fc3c1627f581a8fcb83e4c11113048b58feda99381f6480b56f1eaed
7
+ data.tar.gz: 0e8dae928a6d2d64ac459ce48d370bc866516f133fc8e60d14a581deb62ff6761cb3480a294ee8c5afb95a675d9ebc0e4887ec5683f8a80872f9bb8afcfd8447
@@ -19,6 +19,8 @@ module OmniAI
19
19
  CODESTRAL = 'codestral-latest'
20
20
  end
21
21
 
22
+ DEFAULT_MODEL = Model::MEDIUM
23
+
22
24
  module Role
23
25
  ASSISTANT = 'assistant'
24
26
  USER = 'user'
@@ -44,16 +44,19 @@ module OmniAI
44
44
 
45
45
  # @raise [OmniAI::Error]
46
46
  #
47
- # @param messages [String, Array, Hash]
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
51
51
  # @param stream [Proc, nil] optional
52
52
  # @param tools [Array<OmniAI::Tool>, nil] optional
53
53
  #
54
+ # @yield [prompt] optional
55
+ # @yieldparam prompt [OmniAI::Chat::Prompt]
56
+ #
54
57
  # @return [OmniAI::Chat::Completion]
55
- def chat(messages, model: Chat::Model::MEDIUM, temperature: nil, format: nil, stream: nil, tools: nil)
56
- Chat.process!(messages, model:, temperature:, format:, stream:, tools:, client: self)
58
+ def chat(messages = nil, model: Chat::DEFAULT_MODEL, temperature: nil, format: nil, stream: nil, tools: nil, &)
59
+ Chat.process!(messages, model:, temperature:, format:, stream:, tools:, client: self, &)
57
60
  end
58
61
  end
59
62
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAI
4
4
  module Mistral
5
- VERSION = '1.6.0'
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-mistral
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Sylvestre