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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 82f44ec692941bead59c002656f2bf520b4bfa61228ece8e885e2c96fb946e1a
4
- data.tar.gz: e88e9127a305b73a6407f8cbb34725187c1c30f981c1008c672a8c18146673cd
3
+ metadata.gz: 187cfa46a496e7b0650b78cb0e387354139755e9aca70d93a691e44a75c11079
4
+ data.tar.gz: 8c585cd879654a9634b8baef292aa3edd512c6e3c982d9b670bbe0e9bf717246
5
5
  SHA512:
6
- metadata.gz: bacb325cadef5c7d6846d550041b11e207e26681707d0ef399926d6e87196594bf06a29211dc4825b0134d4b9067c5129f9422e0260a6c78d2f127d02b665f56
7
- data.tar.gz: 13f1ffa286c1627c2777390177d84dc5dfc96b33293a072370e938de0b18e9fbb898e4cfcd080118231502b3fb107e47b11370fae6e753cef589b632a9e286c7
6
+ metadata.gz: 509d87a0f9006830fdffd71303c74f0f0588522887dc010af872811879dee3338534e6759ba1d08aa12e678abb1bd3fdbb7151e7c96705821dc5d6422a41d415
7
+ data.tar.gz: 221858c71c101e13924bd919790e04bdcbe0174b00f6ea73e2d080b66fa46ff61c1bf3ee039f9d474cba9ceb1792173191883fde550fa6aa6283de1b410a0006
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- openai-chat (0.0.3)
4
+ openai-chat (0.0.2)
5
5
  mime-types (~> 3.0)
6
6
 
7
7
  GEM
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", github: "firstdraft/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-4o` model. If you want something else, you can set it:
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-mini"
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 old messages from a chat that has already happened.
121
+ Useful if you are reconstructing a chat that has already happened.
122
122
 
123
123
  ## Getting and setting messages directly
124
124
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OpenAI
4
4
  class Chat
5
- VERSION = "0.0.3"
5
+ VERSION = "0.0.4"
6
6
  end
7
7
  end
data/lib/openai/chat.rb CHANGED
@@ -9,7 +9,7 @@ module OpenAI
9
9
  def initialize(api_token: nil)
10
10
  @api_token = api_token || ENV.fetch("OPENAI_TOKEN")
11
11
  @messages = []
12
- @model = "gpt-4o"
12
+ @model = "gpt-4.1-nano"
13
13
  end
14
14
 
15
15
  def system(content)
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.3
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-03-06 00:00:00.000000000 Z
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.5
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.