File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ The OpenAI Ruby library provides convenient access to the OpenAI REST API from a
4
4
5
5
## Documentation
6
6
7
- Documentation for released of this gem can be found [ on RubyDoc] ( https://gemdocs.org/gems/openai ) .
7
+ Documentation for releases of this gem can be found [ on RubyDoc] ( https://gemdocs.org/gems/openai ) .
8
8
9
9
The underlying REST API documentation can be found on [ platform.openai.com] ( https://platform.openai.com/docs ) .
10
10
62
62
63
63
### Streaming
64
64
65
- We provide support for streaming responses using Server Side Events (SSE).
65
+ We provide support for streaming responses using Server-Sent Events (SSE).
66
66
67
67
** coming soon:** ` openai.chat.completions.stream ` will soon come with Python SDK style higher level streaming responses support.
68
68
Original file line number Diff line number Diff line change @@ -117,8 +117,9 @@ def inspect(depth: 0)
117
117
return super ( ) if depth . positive?
118
118
119
119
members = values . map { OpenAI ::Internal ::Type ::Converter . inspect ( _1 , depth : depth . succ ) }
120
+ prefix = is_a? ( Module ) ? name : self . class . name
120
121
121
- "#{ name } [#{ members . join ( ' | ' ) } ]"
122
+ "#{ prefix } [#{ members . join ( ' | ' ) } ]"
122
123
end
123
124
end
124
125
end
Original file line number Diff line number Diff line change @@ -218,8 +218,9 @@ def inspect(depth: 0)
218
218
return super ( ) if depth . positive?
219
219
220
220
members = variants . map { OpenAI ::Internal ::Type ::Converter . inspect ( _1 , depth : depth . succ ) }
221
+ prefix = is_a? ( Module ) ? name : self . class . name
221
222
222
- "#{ name } [#{ members . join ( ' | ' ) } ]"
223
+ "#{ prefix } [#{ members . join ( ' | ' ) } ]"
223
224
end
224
225
end
225
226
end
You can’t perform that action at this time.
0 commit comments