Skip to content

Commit 5ba16d2

Browse files
chore(api): event shapes more accurate
1 parent 5869fb0 commit 5ba16d2

File tree

68 files changed

+908
-554
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+908
-554
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 109
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-670ea0d2cc44f52a87dd3cadea45632953283e0636ba30788fdbdb22a232ccac.yml
3-
openapi_spec_hash: d8b7d38911fead545adf3e4297956410
4-
config_hash: b2a4028fdbb27a08de89831ed310e244
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-b2a451656ca64d30d174391ebfd94806b4de3ab76dc55b92843cfb7f1a54ecb6.yml
3+
openapi_spec_hash: 27d9691b400f28c17ef063a1374048b0
4+
config_hash: e822d0c9082c8b312264403949243179

lib/openai.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,6 @@
425425
require_relative "openai/models/responses/response_output_text_annotation_added_event"
426426
require_relative "openai/models/responses/response_prompt"
427427
require_relative "openai/models/responses/response_queued_event"
428-
require_relative "openai/models/responses/response_reasoning_delta_event"
429-
require_relative "openai/models/responses/response_reasoning_done_event"
430428
require_relative "openai/models/responses/response_reasoning_item"
431429
require_relative "openai/models/responses/response_reasoning_summary_delta_event"
432430
require_relative "openai/models/responses/response_reasoning_summary_done_event"

lib/openai/models/audio/speech_create_params.rb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,6 @@ module Voice
111111

112112
variant const: -> { OpenAI::Models::Audio::SpeechCreateParams::Voice::ECHO }
113113

114-
variant const: -> { OpenAI::Models::Audio::SpeechCreateParams::Voice::FABLE }
115-
116-
variant const: -> { OpenAI::Models::Audio::SpeechCreateParams::Voice::ONYX }
117-
118-
variant const: -> { OpenAI::Models::Audio::SpeechCreateParams::Voice::NOVA }
119-
120114
variant const: -> { OpenAI::Models::Audio::SpeechCreateParams::Voice::SAGE }
121115

122116
variant const: -> { OpenAI::Models::Audio::SpeechCreateParams::Voice::SHIMMER }
@@ -137,9 +131,6 @@ module Voice
137131
BALLAD = :ballad
138132
CORAL = :coral
139133
ECHO = :echo
140-
FABLE = :fable
141-
ONYX = :onyx
142-
NOVA = :nova
143134
SAGE = :sage
144135
SHIMMER = :shimmer
145136
VERSE = :verse

lib/openai/models/chat/chat_completion.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class ChatCompletion < OpenAI::Internal::Type::BaseModel
4444
# - If set to 'auto', then the request will be processed with the service tier
4545
# configured in the Project settings. Unless otherwise configured, the Project
4646
# will use 'default'.
47-
# - If set to 'default', then the requset will be processed with the standard
47+
# - If set to 'default', then the request will be processed with the standard
4848
# pricing and performance for the selected model.
4949
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or
5050
# 'priority', then the request will be processed with the corresponding service
@@ -193,7 +193,7 @@ class Logprobs < OpenAI::Internal::Type::BaseModel
193193
# - If set to 'auto', then the request will be processed with the service tier
194194
# configured in the Project settings. Unless otherwise configured, the Project
195195
# will use 'default'.
196-
# - If set to 'default', then the requset will be processed with the standard
196+
# - If set to 'default', then the request will be processed with the standard
197197
# pricing and performance for the selected model.
198198
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or
199199
# 'priority', then the request will be processed with the corresponding service

lib/openai/models/chat/chat_completion_audio_param.rb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,6 @@ module Voice
6767

6868
variant const: -> { OpenAI::Models::Chat::ChatCompletionAudioParam::Voice::ECHO }
6969

70-
variant const: -> { OpenAI::Models::Chat::ChatCompletionAudioParam::Voice::FABLE }
71-
72-
variant const: -> { OpenAI::Models::Chat::ChatCompletionAudioParam::Voice::ONYX }
73-
74-
variant const: -> { OpenAI::Models::Chat::ChatCompletionAudioParam::Voice::NOVA }
75-
7670
variant const: -> { OpenAI::Models::Chat::ChatCompletionAudioParam::Voice::SAGE }
7771

7872
variant const: -> { OpenAI::Models::Chat::ChatCompletionAudioParam::Voice::SHIMMER }
@@ -93,9 +87,6 @@ module Voice
9387
BALLAD = :ballad
9488
CORAL = :coral
9589
ECHO = :echo
96-
FABLE = :fable
97-
ONYX = :onyx
98-
NOVA = :nova
9990
SAGE = :sage
10091
SHIMMER = :shimmer
10192
VERSE = :verse

lib/openai/models/chat/chat_completion_chunk.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class ChatCompletionChunk < OpenAI::Internal::Type::BaseModel
4343
# - If set to 'auto', then the request will be processed with the service tier
4444
# configured in the Project settings. Unless otherwise configured, the Project
4545
# will use 'default'.
46-
# - If set to 'default', then the requset will be processed with the standard
46+
# - If set to 'default', then the request will be processed with the standard
4747
# pricing and performance for the selected model.
4848
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or
4949
# 'priority', then the request will be processed with the corresponding service
@@ -376,7 +376,7 @@ class Logprobs < OpenAI::Internal::Type::BaseModel
376376
# - If set to 'auto', then the request will be processed with the service tier
377377
# configured in the Project settings. Unless otherwise configured, the Project
378378
# will use 'default'.
379-
# - If set to 'default', then the requset will be processed with the standard
379+
# - If set to 'default', then the request will be processed with the standard
380380
# pricing and performance for the selected model.
381381
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or
382382
# 'priority', then the request will be processed with the corresponding service

lib/openai/models/chat/completion_create_params.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ class CompletionCreateParams < OpenAI::Internal::Type::BaseModel
224224
# - If set to 'auto', then the request will be processed with the service tier
225225
# configured in the Project settings. Unless otherwise configured, the Project
226226
# will use 'default'.
227-
# - If set to 'default', then the requset will be processed with the standard
227+
# - If set to 'default', then the request will be processed with the standard
228228
# pricing and performance for the selected model.
229229
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or
230230
# 'priority', then the request will be processed with the corresponding service
@@ -553,7 +553,7 @@ module ResponseFormat
553553
# - If set to 'auto', then the request will be processed with the service tier
554554
# configured in the Project settings. Unless otherwise configured, the Project
555555
# will use 'default'.
556-
# - If set to 'default', then the requset will be processed with the standard
556+
# - If set to 'default', then the request will be processed with the standard
557557
# pricing and performance for the selected model.
558558
# - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)' or
559559
# 'priority', then the request will be processed with the corresponding service

lib/openai/models/function_definition.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class FunctionDefinition < OpenAI::Internal::Type::BaseModel
3434
# set to true, the model will follow the exact schema defined in the `parameters`
3535
# field. Only a subset of JSON Schema is supported when `strict` is `true`. Learn
3636
# more about Structured Outputs in the
37-
# [function calling guide](docs/guides/function-calling).
37+
# [function calling guide](https://platform.openai.com/docs/guides/function-calling).
3838
#
3939
# @return [Boolean, nil]
4040
optional :strict, OpenAI::Internal::Type::Boolean, nil?: true

lib/openai/models/image_edit_params.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ class ImageEditParams < OpenAI::Internal::Type::BaseModel
9292
# responses that return partial images. Value must be between 0 and 3. When set to
9393
# 0, the response will be a single image sent in one streaming event.
9494
#
95+
# Note that the final image may be sent before the full number of partial images
96+
# are generated if the full image is generated more quickly.
97+
#
9598
# @return [Integer, nil]
9699
optional :partial_images, Integer, nil?: true
97100

lib/openai/models/image_generate_params.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ class ImageGenerateParams < OpenAI::Internal::Type::BaseModel
7171
# responses that return partial images. Value must be between 0 and 3. When set to
7272
# 0, the response will be a single image sent in one streaming event.
7373
#
74+
# Note that the final image may be sent before the full number of partial images
75+
# are generated if the full image is generated more quickly.
76+
#
7477
# @return [Integer, nil]
7578
optional :partial_images, Integer, nil?: true
7679

0 commit comments

Comments
 (0)