openai_ruby 0.3.8 → 0.3.9

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: 62f0b226a7ae9602b425e0e72149e058dd6d122ed54fd325a1799d7ec493daee
4
- data.tar.gz: 8e3fa3d8842917acbbff93f0bff58b07fd953b11616d2e3b64508dab91351327
3
+ metadata.gz: 71df1d565c7ff9b14d3778a6784e0a5d6264c4511986d4cd807fabcf040418ae
4
+ data.tar.gz: faeb2d15ab2a0263650650e3b1a5077c98f462c2e59f78e9eb58c0b303219f05
5
5
  SHA512:
6
- metadata.gz: f70d3f04b8d1983186cc95870f6961b1ad88465123c3c2b0d83c0ba4cd9ccf5a254772a2586416b1374acd13291b4a456a088c463114f3b9e89b271b80bc776f
7
- data.tar.gz: cab463d49f2a5ce6487e8e9b4ebb1a3ed0f5a270aa3697c56a6520ba72d4a808de356d38d9f9b48e8805fd0621ed498368d61117ffae996c20c8e5b757d5108a
6
+ metadata.gz: a532692845a6a896a835b3a38279b0443c5c133bc7a54a7bf9d55b1b666975b07966bd67ce0957e7e69e902a2562af150a5ac5ae65bded79ebb85056f666f9d1
7
+ data.tar.gz: 4b5b2b1c403a91f2448f75afeaecab7ccf4e0f638912783d60dc9e826cbdbb1dd8b8e1cdc311a9078c4b9ad596060ca26b522f2aeb9e70bce9f604b90d4e2487
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- openai_ruby (0.3.8)
4
+ openai_ruby (0.3.9)
5
5
  faraday (~> 2.7)
6
6
 
7
7
  GEM
@@ -6,7 +6,7 @@ module OpenAI
6
6
 
7
7
  attr_reader :api_key, :options
8
8
 
9
- def initialize(api_key, options)
9
+ def initialize(api_key, options = {})
10
10
  @api_key = api_key
11
11
  @options = options
12
12
  end
@@ -54,7 +54,7 @@ module OpenAI
54
54
  def headers
55
55
  {
56
56
  "Content-Type" => "application/json",
57
- "Authorization" => "Bearer #{api_key}",
57
+ "Authorization" => "Bearer #{api_key}"
58
58
  }
59
59
  end
60
60
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OpenAI
4
- VERSION = "0.3.8"
4
+ VERSION = "0.3.9"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openai_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Renny Ren