omniai 1.8.3 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniai/chat/prompt.rb +4 -4
- data/lib/omniai/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: 2be85cf16b03f342e3432ac030833ab316f36de5e2d788a084b4c42776d4a848
|
4
|
+
data.tar.gz: c9d036b21d875a1b5daa672af6f21a92194e8d699a52c01d8d82fe73fff18f98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36434f2cf177a9fe41d17517604e4bb82df002af8174544d1256041b3b6bd08c522f2017a46e312ea96a151f4c39bb7023df2cb3fbcfde2b055cf625a99245e6
|
7
|
+
data.tar.gz: fc28ef3dec6bce8cc7607eb282bd8a0cd715c01775732aebbb1ad0f5139d3a3ff4de385ecf545aae6437ab7788a35c065ada364dbc1865dbe3a15bf962c1b579
|
data/lib/omniai/chat/prompt.rb
CHANGED
@@ -146,10 +146,10 @@ module OmniAI
|
|
146
146
|
end
|
147
147
|
|
148
148
|
# @example
|
149
|
-
# prompt.
|
149
|
+
# prompt.assistant('the capital of Canada is Ottawa.')
|
150
150
|
#
|
151
151
|
# @example
|
152
|
-
# prompt.
|
152
|
+
# prompt.assistant do |message|
|
153
153
|
# message.text 'the capital of Canada is Ottawa.'
|
154
154
|
# end
|
155
155
|
#
|
@@ -159,8 +159,8 @@ module OmniAI
|
|
159
159
|
# @yieldparam builder [Message::Builder]
|
160
160
|
#
|
161
161
|
# @return [Message]
|
162
|
-
def
|
163
|
-
message(content, role: Role::
|
162
|
+
def assistant(content = nil, &)
|
163
|
+
message(content, role: Role::ASSISTANT, &)
|
164
164
|
end
|
165
165
|
end
|
166
166
|
end
|
data/lib/omniai/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.9.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-10-
|
11
|
+
date: 2024-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: event_stream_parser
|
@@ -118,7 +118,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
118
118
|
requirements:
|
119
119
|
- - ">="
|
120
120
|
- !ruby/object:Gem::Version
|
121
|
-
version: 3.
|
121
|
+
version: 3.2.0
|
122
122
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
123
123
|
requirements:
|
124
124
|
- - ">="
|