omniai-mistral 1.3.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/lib/omniai/mistral/chat.rb +1 -0
- data/lib/omniai/mistral/client.rb +3 -2
- data/lib/omniai/mistral/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6f7b36b36c5460c0ca69d83449bcc696168a70b772fcd71dc74604a1c1b892b
|
4
|
+
data.tar.gz: 737c9f1d3fa9cfceddf4a0d7cbc074b6ee0769186d7390e387e7d4193237c0c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 063e6252ade8a03eca3b8b29779676b549f0a89c4b6bc6c80f8e59930bbdd89c8018950d5ae7a84a4bab778416b9e7307aa75c083330271e2c0bea982f553821
|
7
|
+
data.tar.gz: 2d3c40e17fcd7c3ce777fa29d271a6bf3103d9c2a76b1b8d7cfa0d8be748bbba86cf2b3c9316618cde9e0393cb673c1299f08b8198d6f76790b665b5ce9d1291
|
data/Gemfile
CHANGED
data/lib/omniai/mistral/chat.rb
CHANGED
@@ -49,10 +49,11 @@ module OmniAI
|
|
49
49
|
# @param format [Symbol] optional :text or :json
|
50
50
|
# @param temperature [Float, nil] optional
|
51
51
|
# @param stream [Proc, nil] optional
|
52
|
+
# @param tools [Array<OmniAI::Tool>, nil] optional
|
52
53
|
#
|
53
54
|
# @return [OmniAI::Chat::Completion]
|
54
|
-
def chat(messages, model: Chat::Model::MEDIUM, temperature: nil, format: nil, stream: nil)
|
55
|
-
Chat.process!(messages, model:, temperature:, format:, stream:, client: self)
|
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)
|
56
57
|
end
|
57
58
|
end
|
58
59
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniai-mistral
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Sylvestre
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: event_stream_parser
|
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
requirements: []
|
91
|
-
rubygems_version: 3.5.
|
91
|
+
rubygems_version: 3.5.14
|
92
92
|
signing_key:
|
93
93
|
specification_version: 4
|
94
94
|
summary: A generalized framework for interacting with Mistral
|