Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.61.0"
".": "0.62.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 232
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai/openai-21ecab7aeb61612b9da5e52ea4c0cb75a33d443d975022934b9305e97d1a7d62.yml
openapi_spec_hash: cfc868a0bb3567183510c9b5629c510f
config_hash: dd484e2cc01206d26516338d0f4596b0
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai/openai-371f497afe4d6070f6e252e5febbe8f453c7058a8dff0c26a01b4d88442a4ac2.yml
openapi_spec_hash: d39f46e8fda45f77096448105efd175a
config_hash: b64135fff1fe9cf4069b9ecf59ae8b07
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Changelog

## 0.62.0 (2026-05-07)

Full Changelog: [v0.61.0...v0.62.0](https://github.com/openai/openai-ruby/compare/v0.61.0...v0.62.0)

### Features

* **api:** add quantity field to organization usage costs results ([2085700](https://github.com/openai/openai-ruby/commit/2085700725c2325e880a715ce3b13b4efce7b5d4))
* **api:** add web_search_call.results includable option ([b486412](https://github.com/openai/openai-ruby/commit/b4864127789424527497aa6097d93ea06e9aa4f7))
* **api:** launch realtime translate + update image 2 ([0e642fb](https://github.com/openai/openai-ruby/commit/0e642fbf02845ff94b8eda0fca7e8348adc3ac37))
* **api:** manual updates ([4baf155](https://github.com/openai/openai-ruby/commit/4baf155ef74ffdf533dfba330e15f7accf1e5351))
* **api:** manual updates ([20c8209](https://github.com/openai/openai-ruby/commit/20c82091b6c24668e90ed895dfc7e88b0aafd977))
* **api:** realtime 2 ([1718781](https://github.com/openai/openai-ruby/commit/17187817c580b642d61ea754aa63782a16af94bc))


### Bug Fixes

* **api:** fix imagegen `size` enum regression ([51548cd](https://github.com/openai/openai-ruby/commit/51548cd04ab8f3a16e980bd2318ddb42ee75ce6c))

## 0.61.0 (2026-05-01)

Full Changelog: [v0.60.0...v0.61.0](https://github.com/openai/openai-ruby/compare/v0.60.0...v0.61.0)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GIT
PATH
remote: .
specs:
openai (0.61.0)
openai (0.62.0)
base64
cgi
connection_pool
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
<!-- x-release-please-start-version -->

```ruby
gem "openai", "~> 0.61.0"
gem "openai", "~> 0.62.0"
```

<!-- x-release-please-end -->
Expand Down
19 changes: 18 additions & 1 deletion lib/openai.rb
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,8 @@
require_relative "openai/models/realtime/realtime_mcp_protocol_error"
require_relative "openai/models/realtime/realtime_mcp_tool_call"
require_relative "openai/models/realtime/realtime_mcp_tool_execution_error"
require_relative "openai/models/realtime/realtime_reasoning"
require_relative "openai/models/realtime/realtime_reasoning_effort"
require_relative "openai/models/realtime/realtime_response"
require_relative "openai/models/realtime/realtime_response_create_audio_output"
require_relative "openai/models/realtime/realtime_response_create_mcp_tool"
Expand All @@ -639,7 +641,6 @@
require_relative "openai/models/realtime/realtime_response_usage_output_token_details"
require_relative "openai/models/realtime/realtime_server_event"
require_relative "openai/models/realtime/realtime_session"
require_relative "openai/models/realtime/realtime_session_client_secret"
require_relative "openai/models/realtime/realtime_session_create_response"
require_relative "openai/models/realtime/realtime_tool_choice_config"
require_relative "openai/models/realtime/realtime_tools_config"
Expand All @@ -651,6 +652,22 @@
require_relative "openai/models/realtime/realtime_transcription_session_create_request"
require_relative "openai/models/realtime/realtime_transcription_session_create_response"
require_relative "openai/models/realtime/realtime_transcription_session_turn_detection"
require_relative "openai/models/realtime/realtime_translation_client_event"
require_relative "openai/models/realtime/realtime_translation_client_secret_create_request"
require_relative "openai/models/realtime/realtime_translation_client_secret_create_response"
require_relative "openai/models/realtime/realtime_translation_input_audio_buffer_append_event"
require_relative "openai/models/realtime/realtime_translation_input_transcript_delta_event"
require_relative "openai/models/realtime/realtime_translation_output_audio_delta_event"
require_relative "openai/models/realtime/realtime_translation_output_transcript_delta_event"
require_relative "openai/models/realtime/realtime_translation_server_event"
require_relative "openai/models/realtime/realtime_translation_session"
require_relative "openai/models/realtime/realtime_translation_session_closed_event"
require_relative "openai/models/realtime/realtime_translation_session_close_event"
require_relative "openai/models/realtime/realtime_translation_session_created_event"
require_relative "openai/models/realtime/realtime_translation_session_create_request"
require_relative "openai/models/realtime/realtime_translation_session_updated_event"
require_relative "openai/models/realtime/realtime_translation_session_update_event"
require_relative "openai/models/realtime/realtime_translation_session_update_request"
require_relative "openai/models/realtime/realtime_truncation"
require_relative "openai/models/realtime/realtime_truncation_retention_ratio"
require_relative "openai/models/realtime/response_audio_delta_event"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,14 @@ class OrganizationCostsResult < OpenAI::Internal::Type::BaseModel
# @return [String, nil]
optional :project_id, String, nil?: true

# @!method initialize(amount: nil, api_key_id: nil, line_item: nil, project_id: nil, object: :"organization.costs.result")
# @!attribute quantity
# When `group_by=line_item`, this field provides the quantity of the grouped costs
# result.
#
# @return [Float, nil]
optional :quantity, Float, nil?: true

# @!method initialize(amount: nil, api_key_id: nil, line_item: nil, project_id: nil, quantity: nil, object: :"organization.costs.result")
# Some parameter documentations has been truncated, see
# {OpenAI::Models::Admin::Organization::UsageAudioSpeechesResponse::Data::Result::OrganizationCostsResult}
# for more details.
Expand All @@ -699,6 +706,8 @@ class OrganizationCostsResult < OpenAI::Internal::Type::BaseModel
#
# @param project_id [String, nil] When `group_by=project_id`, this field provides the project ID of the grouped co
#
# @param quantity [Float, nil] When `group_by=line_item`, this field provides the quantity of the grouped costs
#
# @param object [Symbol, :"organization.costs.result"]

# @see OpenAI::Models::Admin::Organization::UsageAudioSpeechesResponse::Data::Result::OrganizationCostsResult#amount
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,14 @@ class OrganizationCostsResult < OpenAI::Internal::Type::BaseModel
# @return [String, nil]
optional :project_id, String, nil?: true

# @!method initialize(amount: nil, api_key_id: nil, line_item: nil, project_id: nil, object: :"organization.costs.result")
# @!attribute quantity
# When `group_by=line_item`, this field provides the quantity of the grouped costs
# result.
#
# @return [Float, nil]
optional :quantity, Float, nil?: true

# @!method initialize(amount: nil, api_key_id: nil, line_item: nil, project_id: nil, quantity: nil, object: :"organization.costs.result")
# Some parameter documentations has been truncated, see
# {OpenAI::Models::Admin::Organization::UsageAudioTranscriptionsResponse::Data::Result::OrganizationCostsResult}
# for more details.
Expand All @@ -699,6 +706,8 @@ class OrganizationCostsResult < OpenAI::Internal::Type::BaseModel
#
# @param project_id [String, nil] When `group_by=project_id`, this field provides the project ID of the grouped co
#
# @param quantity [Float, nil] When `group_by=line_item`, this field provides the quantity of the grouped costs
#
# @param object [Symbol, :"organization.costs.result"]

# @see OpenAI::Models::Admin::Organization::UsageAudioTranscriptionsResponse::Data::Result::OrganizationCostsResult#amount
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,14 @@ class OrganizationCostsResult < OpenAI::Internal::Type::BaseModel
# @return [String, nil]
optional :project_id, String, nil?: true

# @!method initialize(amount: nil, api_key_id: nil, line_item: nil, project_id: nil, object: :"organization.costs.result")
# @!attribute quantity
# When `group_by=line_item`, this field provides the quantity of the grouped costs
# result.
#
# @return [Float, nil]
optional :quantity, Float, nil?: true

# @!method initialize(amount: nil, api_key_id: nil, line_item: nil, project_id: nil, quantity: nil, object: :"organization.costs.result")
# Some parameter documentations has been truncated, see
# {OpenAI::Models::Admin::Organization::UsageCodeInterpreterSessionsResponse::Data::Result::OrganizationCostsResult}
# for more details.
Expand All @@ -699,6 +706,8 @@ class OrganizationCostsResult < OpenAI::Internal::Type::BaseModel
#
# @param project_id [String, nil] When `group_by=project_id`, this field provides the project ID of the grouped co
#
# @param quantity [Float, nil] When `group_by=line_item`, this field provides the quantity of the grouped costs
#
# @param object [Symbol, :"organization.costs.result"]

# @see OpenAI::Models::Admin::Organization::UsageCodeInterpreterSessionsResponse::Data::Result::OrganizationCostsResult#amount
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,14 @@ class OrganizationCostsResult < OpenAI::Internal::Type::BaseModel
# @return [String, nil]
optional :project_id, String, nil?: true

# @!method initialize(amount: nil, api_key_id: nil, line_item: nil, project_id: nil, object: :"organization.costs.result")
# @!attribute quantity
# When `group_by=line_item`, this field provides the quantity of the grouped costs
# result.
#
# @return [Float, nil]
optional :quantity, Float, nil?: true

# @!method initialize(amount: nil, api_key_id: nil, line_item: nil, project_id: nil, quantity: nil, object: :"organization.costs.result")
# Some parameter documentations has been truncated, see
# {OpenAI::Models::Admin::Organization::UsageCompletionsResponse::Data::Result::OrganizationCostsResult}
# for more details.
Expand All @@ -699,6 +706,8 @@ class OrganizationCostsResult < OpenAI::Internal::Type::BaseModel
#
# @param project_id [String, nil] When `group_by=project_id`, this field provides the project ID of the grouped co
#
# @param quantity [Float, nil] When `group_by=line_item`, this field provides the quantity of the grouped costs
#
# @param object [Symbol, :"organization.costs.result"]

# @see OpenAI::Models::Admin::Organization::UsageCompletionsResponse::Data::Result::OrganizationCostsResult#amount
Expand Down
11 changes: 10 additions & 1 deletion lib/openai/models/admin/organization/usage_costs_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,14 @@ class OrganizationCostsResult < OpenAI::Internal::Type::BaseModel
# @return [String, nil]
optional :project_id, String, nil?: true

# @!method initialize(amount: nil, api_key_id: nil, line_item: nil, project_id: nil, object: :"organization.costs.result")
# @!attribute quantity
# When `group_by=line_item`, this field provides the quantity of the grouped costs
# result.
#
# @return [Float, nil]
optional :quantity, Float, nil?: true

# @!method initialize(amount: nil, api_key_id: nil, line_item: nil, project_id: nil, quantity: nil, object: :"organization.costs.result")
# Some parameter documentations has been truncated, see
# {OpenAI::Models::Admin::Organization::UsageCostsResponse::Data::Result::OrganizationCostsResult}
# for more details.
Expand All @@ -699,6 +706,8 @@ class OrganizationCostsResult < OpenAI::Internal::Type::BaseModel
#
# @param project_id [String, nil] When `group_by=project_id`, this field provides the project ID of the grouped co
#
# @param quantity [Float, nil] When `group_by=line_item`, this field provides the quantity of the grouped costs
#
# @param object [Symbol, :"organization.costs.result"]

# @see OpenAI::Models::Admin::Organization::UsageCostsResponse::Data::Result::OrganizationCostsResult#amount
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,14 @@ class OrganizationCostsResult < OpenAI::Internal::Type::BaseModel
# @return [String, nil]
optional :project_id, String, nil?: true

# @!method initialize(amount: nil, api_key_id: nil, line_item: nil, project_id: nil, object: :"organization.costs.result")
# @!attribute quantity
# When `group_by=line_item`, this field provides the quantity of the grouped costs
# result.
#
# @return [Float, nil]
optional :quantity, Float, nil?: true

# @!method initialize(amount: nil, api_key_id: nil, line_item: nil, project_id: nil, quantity: nil, object: :"organization.costs.result")
# Some parameter documentations has been truncated, see
# {OpenAI::Models::Admin::Organization::UsageEmbeddingsResponse::Data::Result::OrganizationCostsResult}
# for more details.
Expand All @@ -699,6 +706,8 @@ class OrganizationCostsResult < OpenAI::Internal::Type::BaseModel
#
# @param project_id [String, nil] When `group_by=project_id`, this field provides the project ID of the grouped co
#
# @param quantity [Float, nil] When `group_by=line_item`, this field provides the quantity of the grouped costs
#
# @param object [Symbol, :"organization.costs.result"]

# @see OpenAI::Models::Admin::Organization::UsageEmbeddingsResponse::Data::Result::OrganizationCostsResult#amount
Expand Down
11 changes: 10 additions & 1 deletion lib/openai/models/admin/organization/usage_images_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,14 @@ class OrganizationCostsResult < OpenAI::Internal::Type::BaseModel
# @return [String, nil]
optional :project_id, String, nil?: true

# @!method initialize(amount: nil, api_key_id: nil, line_item: nil, project_id: nil, object: :"organization.costs.result")
# @!attribute quantity
# When `group_by=line_item`, this field provides the quantity of the grouped costs
# result.
#
# @return [Float, nil]
optional :quantity, Float, nil?: true

# @!method initialize(amount: nil, api_key_id: nil, line_item: nil, project_id: nil, quantity: nil, object: :"organization.costs.result")
# Some parameter documentations has been truncated, see
# {OpenAI::Models::Admin::Organization::UsageImagesResponse::Data::Result::OrganizationCostsResult}
# for more details.
Expand All @@ -699,6 +706,8 @@ class OrganizationCostsResult < OpenAI::Internal::Type::BaseModel
#
# @param project_id [String, nil] When `group_by=project_id`, this field provides the project ID of the grouped co
#
# @param quantity [Float, nil] When `group_by=line_item`, this field provides the quantity of the grouped costs
#
# @param object [Symbol, :"organization.costs.result"]

# @see OpenAI::Models::Admin::Organization::UsageImagesResponse::Data::Result::OrganizationCostsResult#amount
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,14 @@ class OrganizationCostsResult < OpenAI::Internal::Type::BaseModel
# @return [String, nil]
optional :project_id, String, nil?: true

# @!method initialize(amount: nil, api_key_id: nil, line_item: nil, project_id: nil, object: :"organization.costs.result")
# @!attribute quantity
# When `group_by=line_item`, this field provides the quantity of the grouped costs
# result.
#
# @return [Float, nil]
optional :quantity, Float, nil?: true

# @!method initialize(amount: nil, api_key_id: nil, line_item: nil, project_id: nil, quantity: nil, object: :"organization.costs.result")
# Some parameter documentations has been truncated, see
# {OpenAI::Models::Admin::Organization::UsageModerationsResponse::Data::Result::OrganizationCostsResult}
# for more details.
Expand All @@ -699,6 +706,8 @@ class OrganizationCostsResult < OpenAI::Internal::Type::BaseModel
#
# @param project_id [String, nil] When `group_by=project_id`, this field provides the project ID of the grouped co
#
# @param quantity [Float, nil] When `group_by=line_item`, this field provides the quantity of the grouped costs
#
# @param object [Symbol, :"organization.costs.result"]

# @see OpenAI::Models::Admin::Organization::UsageModerationsResponse::Data::Result::OrganizationCostsResult#amount
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,14 @@ class OrganizationCostsResult < OpenAI::Internal::Type::BaseModel
# @return [String, nil]
optional :project_id, String, nil?: true

# @!method initialize(amount: nil, api_key_id: nil, line_item: nil, project_id: nil, object: :"organization.costs.result")
# @!attribute quantity
# When `group_by=line_item`, this field provides the quantity of the grouped costs
# result.
#
# @return [Float, nil]
optional :quantity, Float, nil?: true

# @!method initialize(amount: nil, api_key_id: nil, line_item: nil, project_id: nil, quantity: nil, object: :"organization.costs.result")
# Some parameter documentations has been truncated, see
# {OpenAI::Models::Admin::Organization::UsageVectorStoresResponse::Data::Result::OrganizationCostsResult}
# for more details.
Expand All @@ -699,6 +706,8 @@ class OrganizationCostsResult < OpenAI::Internal::Type::BaseModel
#
# @param project_id [String, nil] When `group_by=project_id`, this field provides the project ID of the grouped co
#
# @param quantity [Float, nil] When `group_by=line_item`, this field provides the quantity of the grouped costs
#
# @param object [Symbol, :"organization.costs.result"]

# @see OpenAI::Models::Admin::Organization::UsageVectorStoresResponse::Data::Result::OrganizationCostsResult#amount
Expand Down
Loading