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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ab0ad2db899898af639d14d319f8de978b4056cddc0b4015fd65663d50e343f
4
- data.tar.gz: 8a3843dbb174c054b26a98a657b0dba537cd77f4dba1dca1baac8d3080b756e7
3
+ metadata.gz: 06a0ef7934fc23948925d5c35b75898df7148f162564db8a59fffa9106efa8d8
4
+ data.tar.gz: 22edea50f3d9a71b3ef659fd731078730adec47cc46190208fe30022a37a9d2e
5
5
  SHA512:
6
- metadata.gz: 2051bf93aac8437af6805882eb9f9d514ba4af1826b8a09234b1b1e67747ba86ae477600e646dd4d63472d464c6b430ee574d95d664c3b11fce891e3848cb33d
7
- data.tar.gz: ca1433a9f56e7b859f90e37649d4c1096d790cfe40a112061b26e5ae4d6d532a15395c7f1b93fd60745db95ecd68ca0aaf449b75d154bc597082788e6cd7f078
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,7 +44,7 @@ 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
@@ -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::Model::MEDIUM, temperature: nil, format: nil, stream: nil, tools: nil, &)
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAI
4
4
  module Mistral
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-mistral
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