File tree 9 files changed +15
-15
lines changed
9 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 20
20
uses : ruby/setup-ruby@v1
21
21
with :
22
22
bundler-cache : false
23
- ruby-version : ' 3.1 '
23
+ ruby-version : ' 3.2 '
24
24
- run : |-
25
25
bundle install
26
26
36
36
uses : ruby/setup-ruby@v1
37
37
with :
38
38
bundler-cache : false
39
- ruby-version : ' 3.1 '
39
+ ruby-version : ' 3.2 '
40
40
- run : |-
41
41
bundle install
42
42
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 '
33
-
32
+ ruby-version : ' 3.2 '
33
+
34
34
- run : |
35
35
bundle install
36
36
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 @@ -9,7 +9,7 @@ module Type
9
9
#
10
10
# This module provides a base implementation for streaming responses in the SDK.
11
11
#
12
- # @see https://rubyapi.org/3.1 /o/enumerable
12
+ # @see https://rubyapi.org/3.2 /o/enumerable
13
13
module BaseStream
14
14
include Enumerable
15
15
@@ -24,7 +24,7 @@ class << self
24
24
#
25
25
# @return [Proc]
26
26
#
27
- # @see https://rubyapi.org/3.1 /o/objectspace#method-c-define_finalizer
27
+ # @see https://rubyapi.org/3.2 /o/objectspace#method-c-define_finalizer
28
28
def defer_closing ( stream ) = -> ( _id ) { OpenAI ::Internal ::Util . close_fused! ( stream ) }
29
29
end
30
30
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