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
44
55## Documentation
66
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 ) .
88
99The underlying REST API documentation can be found on [ platform.openai.com] ( https://platform.openai.com/docs ) .
1010
6262
6363### Streaming
6464
65- We provide support for streaming responses using Server Side Events (SSE).
65+ We provide support for streaming responses using Server-Sent Events (SSE).
6666
6767** coming soon:** ` openai.chat.completions.stream ` will soon come with Python SDK style higher level streaming responses support.
6868
Original file line number Diff line number Diff line change @@ -117,8 +117,9 @@ def inspect(depth: 0)
117117 return super ( ) if depth . positive?
118118
119119 members = values . map { OpenAI ::Internal ::Type ::Converter . inspect ( _1 , depth : depth . succ ) }
120+ prefix = is_a? ( Module ) ? name : self . class . name
120121
121- "#{ name } [#{ members . join ( ' | ' ) } ]"
122+ "#{ prefix } [#{ members . join ( ' | ' ) } ]"
122123 end
123124 end
124125 end
Original file line number Diff line number Diff line change @@ -218,8 +218,9 @@ def inspect(depth: 0)
218218 return super ( ) if depth . positive?
219219
220220 members = variants . map { OpenAI ::Internal ::Type ::Converter . inspect ( _1 , depth : depth . succ ) }
221+ prefix = is_a? ( Module ) ? name : self . class . name
221222
222- "#{ name } [#{ members . join ( ' | ' ) } ]"
223+ "#{ prefix } [#{ members . join ( ' | ' ) } ]"
223224 end
224225 end
225226 end
You can’t perform that action at this time.
0 commit comments