openai 0.25.1 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +32 -0
- data/README.md +1 -1
- data/lib/openai/helpers/streaming/chat_completion_stream.rb +683 -0
- data/lib/openai/helpers/streaming/chat_events.rb +181 -0
- data/lib/openai/helpers/streaming/exceptions.rb +29 -0
- data/lib/openai/helpers/streaming/response_stream.rb +0 -2
- data/lib/openai/internal/util.rb +2 -1
- data/lib/openai/models/all_models.rb +1 -0
- data/lib/openai/models/chat/parsed_chat_completion.rb +15 -0
- data/lib/openai/models/responses_model.rb +1 -0
- data/lib/openai/resources/chat/completions.rb +78 -37
- data/lib/openai/resources/responses.rb +1 -1
- data/lib/openai/version.rb +1 -1
- data/lib/openai.rb +5 -1
- data/rbi/openai/helpers/streaming/events.rbi +120 -0
- data/rbi/openai/models/all_models.rbi +5 -0
- data/rbi/openai/models/responses_model.rbi +5 -0
- data/rbi/openai/streaming.rbi +28 -1
- data/sig/openai/models/all_models.rbs +2 -0
- data/sig/openai/models/responses_model.rbs +2 -0
- metadata +7 -3
- /data/lib/openai/helpers/streaming/{events.rb → response_events.rb} +0 -0
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.27.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAI
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-09-
|
11
|
+
date: 2025-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: connection_pool
|
@@ -39,7 +39,10 @@ files:
|
|
39
39
|
- lib/openai/client.rb
|
40
40
|
- lib/openai/errors.rb
|
41
41
|
- lib/openai/file_part.rb
|
42
|
-
- lib/openai/helpers/streaming/
|
42
|
+
- lib/openai/helpers/streaming/chat_completion_stream.rb
|
43
|
+
- lib/openai/helpers/streaming/chat_events.rb
|
44
|
+
- lib/openai/helpers/streaming/exceptions.rb
|
45
|
+
- lib/openai/helpers/streaming/response_events.rb
|
43
46
|
- lib/openai/helpers/streaming/response_stream.rb
|
44
47
|
- lib/openai/helpers/structured_output.rb
|
45
48
|
- lib/openai/helpers/structured_output/array_of.rb
|
@@ -229,6 +232,7 @@ files:
|
|
229
232
|
- lib/openai/models/chat/completion_retrieve_params.rb
|
230
233
|
- lib/openai/models/chat/completion_update_params.rb
|
231
234
|
- lib/openai/models/chat/completions/message_list_params.rb
|
235
|
+
- lib/openai/models/chat/parsed_chat_completion.rb
|
232
236
|
- lib/openai/models/chat_model.rb
|
233
237
|
- lib/openai/models/comparison_filter.rb
|
234
238
|
- lib/openai/models/completion.rb
|
File without changes
|