File tree 9 files changed +14
-14
lines changed
9 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 18
18
uses : ruby/setup-ruby@v1
19
19
with :
20
20
bundler-cache : false
21
- ruby-version : ' 3.1 '
21
+ ruby-version : ' 3.2 '
22
22
- run : |-
23
23
bundle install
24
24
33
33
uses : ruby/setup-ruby@v1
34
34
with :
35
35
bundler-cache : false
36
- ruby-version : ' 3.1 '
36
+ ruby-version : ' 3.2 '
37
37
- run : |-
38
38
bundle install
39
39
Original file line number Diff line number Diff line change 29
29
uses: ruby/setup-ruby@v1
30
30
with:
31
31
bundler-cache: false
32
- ruby-version: '3.1 '
32
+ ruby-version: '3.2 '
33
33
- run: |-
34
34
bundle install
35
35
Original file line number Diff line number Diff line change 15
15
uses : ruby/setup-ruby@v1
16
16
with :
17
17
bundler-cache : false
18
- ruby-version : ' 3.1 '
18
+ ruby-version : ' 3.2 '
19
19
- run : |-
20
20
bundle install
21
21
Original file line number Diff line number Diff line change 8
8
- " bin/*"
9
9
NewCops : enable
10
10
SuggestExtensions : false
11
- TargetRubyVersion : 3.1.0
11
+ TargetRubyVersion : 3.2
12
12
13
13
# Whether MFA is required or not should be left to the token configuration.
14
14
Gemspec/RequireMFA :
Original file line number Diff line number Diff line change 1
- 3.1.0
1
+ 3.2
Original file line number Diff line number Diff line change 1
1
# OpenAI Ruby API library
2
2
3
- The OpenAI Ruby library provides convenient access to the OpenAI REST API from any Ruby 3.1.0 + application.
3
+ The OpenAI Ruby library provides convenient access to the OpenAI REST API from any Ruby 3.2 + application.
4
4
5
5
## Documentation
6
6
91
91
92
92
### File uploads
93
93
94
- Request parameters that correspond to file uploads can be passed as ` StringIO ` , or a [ ` Pathname ` ] ( https://rubyapi.org/3.1 /o/pathname ) instance.
94
+ Request parameters that correspond to file uploads can be passed as ` StringIO ` , or a [ ` Pathname ` ] ( https://rubyapi.org/3.2 /o/pathname ) instance.
95
95
96
96
``` ruby
97
97
require " pathname"
@@ -271,7 +271,7 @@ This package considers improvements to the (non-runtime) `*.rbi` and `*.rbs` typ
271
271
272
272
## Requirements
273
273
274
- Ruby 3.1.0 or higher.
274
+ Ruby 3.2 or higher.
275
275
276
276
## Contributing
277
277
Original file line number Diff line number Diff line change 17
17
temperature : 0.0
18
18
)
19
19
20
- # the `stream` itself is an `https://rubyapi.org/3.1 /o/enumerable`
20
+ # the `stream` itself is an `https://rubyapi.org/3.2 /o/enumerable`
21
21
# which means that you can work with the stream almost as if it is an array
22
22
all_choices =
23
23
stream
49
49
50
50
stream_of_choices =
51
51
stream
52
- # calling `#lazy` will return a deferred `https://rubyapi.org/3.1 /o/enumerator/lazy`
52
+ # calling `#lazy` will return a deferred `https://rubyapi.org/3.2 /o/enumerator/lazy`
53
53
. lazy
54
54
# each successive calls to methods that return another `enumerable` will not consume the stream
55
55
# but rather, return a transformed stream. (see link above)
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ module Type
7
7
#
8
8
# This module provides a base implementation for streaming responses in the SDK.
9
9
#
10
- # @see https://rubyapi.org/3.1 /o/enumerable
10
+ # @see https://rubyapi.org/3.2 /o/enumerable
11
11
module BaseStream
12
12
include Enumerable
13
13
@@ -22,7 +22,7 @@ class << self
22
22
#
23
23
# @return [Proc]
24
24
#
25
- # @see https://rubyapi.org/3.1 /o/objectspace#method-c-define_finalizer
25
+ # @see https://rubyapi.org/3.2 /o/objectspace#method-c-define_finalizer
26
26
def defer_closing ( stream ) = -> ( _id ) { OpenAI ::Internal ::Util . close_fused! ( stream ) }
27
27
end
28
28
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
s . metadata [ "homepage_uri" ] = s . homepage
13
13
s . metadata [ "source_code_uri" ] = "https://github.com/openai/openai-ruby"
14
14
s . metadata [ "rubygems_mfa_required" ] = false . to_s
15
- s . required_ruby_version = ">= 3.0.0 "
15
+ s . required_ruby_version = ">= 3.2 "
16
16
17
17
s . files = Dir [
18
18
"lib/**/*.rb" ,
You can’t perform that action at this time.
0 commit comments