openai_ruby 0.4.1 → 0.4.2

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: f5873de02b645485ae0e1850fe232ac3a4825f083f227fc0eccd886a2ae9c6b1
4
- data.tar.gz: 4e1fdaca2c2dd90aa5e1f20f7628d1896e3dfc0f0cf9a57682f44a622232268c
3
+ metadata.gz: 993cd595abab23a3adf953bc58dfc31915033462470b52ee73d91682c3413bdb
4
+ data.tar.gz: 34c1663c6d5ccfd01df64c8138ff8afeb832abdf4696de8c656e1406dbb0d4a0
5
5
  SHA512:
6
- metadata.gz: 3a608e43e0b62805b44a817db7a0000f219c2d6fe82bf742a0f2f5f176d4d2e536fb2a723071fef5e69520b193e4af7fa6b1a2834ac502438d2c39903a34681f
7
- data.tar.gz: 691b0d2f5c0ca192a5e9079157407ee79d044d7fce237cc1eedacaf0eb02dd95bce07f89273f6e4580f4f0d259eb488eb9c0033b6bfc6599549da33518fef8cf
6
+ metadata.gz: 55226355ab57831863809c0ee3412786625dc0237ec56719b50c7e2355ec1bdea4d305e79a50db382b78d36b75e6a94ffbc1297132ee727027f6454111e6d8a5
7
+ data.tar.gz: fd707c5a8cec4369ed673932bfe5e7ababca59f85d4a06aee7f180a9e0e28e3cfbb98fe2366335e091f40857fa1a568b789b2ad7cc29d81ebdf7cf500aeffa77
data/README.md CHANGED
@@ -32,7 +32,7 @@ client = OpenAI::Client.new("your OpenAI key here")
32
32
  Or you can pass a hash of options to customize the connection:
33
33
 
34
34
  ```ruby
35
- client = OpenAI::Client.new("your OpenAI key here", { base_uri: "https://example.com/", request: { timeout: 20 } })
35
+ client = OpenAI::Client.new("your OpenAI key here", { base_uri: "https://example.com", request: { timeout: 20 } })
36
36
  ```
37
37
 
38
38
  For more options check [here](https://lostisland.github.io/faraday/#/customization/connection-options)
@@ -4,7 +4,7 @@ module OpenAI
4
4
  class Client
5
5
  DEFAULT_BASE_URI = "https://api.openai.com"
6
6
 
7
- attr_reader :api_key, :options
7
+ attr_reader :api_key, :options, :base_uri
8
8
 
9
9
  def initialize(api_key, options = {})
10
10
  @api_key = api_key
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OpenAI
4
- VERSION = "0.4.1"
4
+ VERSION = "0.4.2"
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.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Renny Ren