Skip to content

Commit 86e6e5a

Browse files
chore(internal): mostly README touch ups
1 parent dd8e964 commit 86e6e5a

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

99
The underlying REST API documentation can be found on [platform.openai.com](https://platform.openai.com/docs).
1010

@@ -62,7 +62,7 @@ end
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

lib/openai/internal/type/enum.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

lib/openai/internal/type/union.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)