omniai-openai 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/omniai/openai/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 667d8318e96d3e6611a3ca20ced5dcefefc0896a4c84c48427ce441756cb9e60
|
4
|
+
data.tar.gz: 13161c5726cc33fcc7934a4164f751244b3c577fb52a1cdf30301dc10f733c84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d44485bdcebe5ee67a846c4517ea62fdb4fd98dfbab464f64fd10316561a396369ce5579367c8f073d79edfee0a790baa46c2fc31dfd2a4522221f0d16679a23
|
7
|
+
data.tar.gz: 2f1054f58e35f37012bc6b95f7605b0eeee01010718c2446a14b623b37cde0028d08ed56330d10bf1145fe5dfa69c3c138f54f5ec7d2bf65e55eb4727a21c664
|
data/README.md
CHANGED
@@ -49,7 +49,7 @@ completion.choice.message.content # 'Why did the chicken cross the road? To get
|
|
49
49
|
|
50
50
|
```ruby
|
51
51
|
completion = client.chat.completion({
|
52
|
-
role: OmniAI::
|
52
|
+
role: OmniAI::Chat::Role::USER,
|
53
53
|
content: 'Is it wise to jump off a bridge?'
|
54
54
|
})
|
55
55
|
completion.choice.message.content # 'No.'
|
@@ -58,7 +58,7 @@ completion.choice.message.content # 'No.'
|
|
58
58
|
```ruby
|
59
59
|
completion = client.chat.completion([
|
60
60
|
{
|
61
|
-
role: OmniAI::
|
61
|
+
role: OmniAI::Chat::Role::SYSTEM,
|
62
62
|
content: 'You are a helpful assistant.'
|
63
63
|
},
|
64
64
|
'What is the capital of Canada?',
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniai-openai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Sylvestre
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: event_stream_parser
|
@@ -72,7 +72,7 @@ metadata:
|
|
72
72
|
homepage_uri: https://github.com/ksylvest/omniai-openai
|
73
73
|
changelog_uri: https://github.com/ksylvest/omniai-openai/releases
|
74
74
|
rubygems_mfa_required: 'true'
|
75
|
-
post_install_message:
|
75
|
+
post_install_message:
|
76
76
|
rdoc_options: []
|
77
77
|
require_paths:
|
78
78
|
- lib
|
@@ -87,8 +87,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '0'
|
89
89
|
requirements: []
|
90
|
-
rubygems_version: 3.5.
|
91
|
-
signing_key:
|
90
|
+
rubygems_version: 3.5.3
|
91
|
+
signing_key:
|
92
92
|
specification_version: 4
|
93
93
|
summary: A generalized framework for interacting with OpenAI
|
94
94
|
test_files: []
|