openai-chat 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +4 -4
- data/lib/openai/chat/version.rb +1 -1
- data/lib/openai/chat.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: 187cfa46a496e7b0650b78cb0e387354139755e9aca70d93a691e44a75c11079
|
4
|
+
data.tar.gz: 8c585cd879654a9634b8baef292aa3edd512c6e3c982d9b670bbe0e9bf717246
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 509d87a0f9006830fdffd71303c74f0f0588522887dc010af872811879dee3338534e6759ba1d08aa12e678abb1bd3fdbb7151e7c96705821dc5d6422a41d415
|
7
|
+
data.tar.gz: 221858c71c101e13924bd919790e04bdcbe0174b00f6ea73e2d080b66fa46ff61c1bf3ee039f9d474cba9ceb1792173191883fde550fa6aa6283de1b410a0006
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -7,7 +7,7 @@ This gem provides a class called `OpenAI::Chat` that is intended to make it as e
|
|
7
7
|
Add this line to your application's Gemfile:
|
8
8
|
|
9
9
|
```ruby
|
10
|
-
gem "openai-chat"
|
10
|
+
gem "openai-chat"
|
11
11
|
```
|
12
12
|
|
13
13
|
And then, at a command prompt:
|
@@ -29,10 +29,10 @@ gem install openai-chat
|
|
29
29
|
```ruby
|
30
30
|
x = OpenAI::Chat.new(api_token: "your-token-goes-here")
|
31
31
|
```
|
32
|
-
- By default, the gem uses the `gpt-
|
32
|
+
- By default, the gem uses the `gpt-4.1-nano` model. If you want something else, you can set it:
|
33
33
|
|
34
34
|
```ruby
|
35
|
-
x.model = "o3
|
35
|
+
x.model = "o3"
|
36
36
|
```
|
37
37
|
|
38
38
|
## Simplest usage
|
@@ -118,7 +118,7 @@ You can manually add assistant messages:
|
|
118
118
|
x.assistant("Greetings, good sir or madam! How dost thou fare on this fine day? Pray, tell me how I may be of service to thee.")
|
119
119
|
```
|
120
120
|
|
121
|
-
Useful if you are reconstructing
|
121
|
+
Useful if you are reconstructing a chat that has already happened.
|
122
122
|
|
123
123
|
## Getting and setting messages directly
|
124
124
|
|
data/lib/openai/chat/version.rb
CHANGED
data/lib/openai/chat.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openai-chat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Raghu Betina
|
8
8
|
- Jelani Woods
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mime-types
|
@@ -151,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
153
|
requirements: []
|
154
|
-
rubygems_version: 3.6.
|
154
|
+
rubygems_version: 3.6.2
|
155
155
|
specification_version: 4
|
156
156
|
summary: This gem provides a class called `OpenAI::Chat` that is intended to make
|
157
157
|
it as easy as possible to use OpenAI's Chat Completions endpoint.
|