Skip to content

Commit 86124be

Browse files
committed
Tweak README spacing on couple of examples
1 parent 10c77c4 commit 86124be

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -74,22 +74,22 @@ client = OpenAI::Client.new
7474
The default timeout for any OpenAI request is 120 seconds. You can change that passing the `request_timeout` when initializing the client. You can also change the base URI used for all requests, eg. to use observability tools like [Helicone](https://docs.helicone.ai/quickstart/integrate-in-one-line-of-code):
7575

7676
```ruby
77-
client = OpenAI::Client.new(
78-
access_token: "access_token_goes_here",
79-
uri_base: "https://oai.hconeai.com",
80-
request_timeout: 240
81-
)
77+
client = OpenAI::Client.new(
78+
access_token: "access_token_goes_here",
79+
uri_base: "https://oai.hconeai.com",
80+
request_timeout: 240
81+
)
8282
```
8383

8484
or when configuring the gem:
8585

8686
```ruby
87-
OpenAI.configure do |config|
88-
config.access_token = ENV.fetch("OPENAI_ACCESS_TOKEN")
89-
config.organization_id = ENV.fetch("OPENAI_ORGANIZATION_ID") # Optional
90-
config.uri_base = "https://oai.hconeai.com" # Optional
91-
config.request_timeout = 240 # Optional
92-
end
87+
OpenAI.configure do |config|
88+
config.access_token = ENV.fetch("OPENAI_ACCESS_TOKEN")
89+
config.organization_id = ENV.fetch("OPENAI_ORGANIZATION_ID") # Optional
90+
config.uri_base = "https://oai.hconeai.com" # Optional
91+
config.request_timeout = 240 # Optional
92+
end
9393
```
9494

9595
### Models
@@ -337,7 +337,7 @@ To install this gem onto your local machine, run `bundle exec rake install`.
337337
First run the specs without VCR so they actually hit the API. This will cost about 2 cents. You'll need to add your `OPENAI_ACCESS_TOKEN=` in `.env`.
338338

339339
```
340-
NO_VCR=true bundle exec rspec
340+
NO_VCR=true bundle exec rspec
341341
```
342342

343343
Then update the version number in `version.rb`, update `CHANGELOG.md`, run `bundle install` to update Gemfile.lock, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).

0 commit comments

Comments
 (0)