openai 0.34.0 → 0.34.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e11bef2bd54635e826382815c9f85486fa061c63f0c27e431a728de52abea20
4
- data.tar.gz: ad82ff8c87f02f9c789a3f007d33f4b374765f912015a438d260b7a1ea48bd96
3
+ metadata.gz: 239d8995ddf81e712fa9ef923ab3a86fed0dd8c65b6ce186121783d598cf695f
4
+ data.tar.gz: 533d8fdd429bab5d03bd4be0135ec093b6c382860fe221afcdbd7e0bd25feee6
5
5
  SHA512:
6
- metadata.gz: 9ece47a4b94c5545646fef9c269cb0bb906e586c28e7b38ff3112a5c4745d762c44b868ee7824011479b296862d6ded53cb83c3a5fa46110f50ec68e729611c6
7
- data.tar.gz: 36aca46bba05e5c6c3e8a39ad305f8b9c3cd66793f3f393a12d837fe77a821d90ba9833f4acaf970ed28e96867a06c66a20e7eecf67d0cbc302675425db220fe
6
+ metadata.gz: 667d676e2c21799e6f549ad48cc60f066218934adbf132f2333c68dee6f84f5580fb7a4ba00d11f63516434fa02110b6570c836cd35e40bc54d2c724c77842b0
7
+ data.tar.gz: 67414f450369b9d4158d59645a8204ffd85dfb0bee569ea141abf2f83dc897d1c99bedc7786ce520385a6fbae66581c21dbfd21cd3b1cdc5cbbcf72b0ba16b6f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.34.1 (2025-10-20)
4
+
5
+ Full Changelog: [v0.34.0...v0.34.1](https://github.com/openai/openai-ruby/compare/v0.34.0...v0.34.1)
6
+
7
+ ### Bug Fixes
8
+
9
+ * **api:** fix discriminator propertyName for ResponseFormatJsonSchema ([e7bacfb](https://github.com/openai/openai-ruby/commit/e7bacfb9e5dee526ff4d4fae23a1663bb3fb64eb))
10
+
3
11
  ## 0.34.0 (2025-10-20)
4
12
 
5
13
  Full Changelog: [v0.33.0...v0.34.0](https://github.com/openai/openai-ruby/compare/v0.33.0...v0.34.0)
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "openai", "~> 0.34.0"
18
+ gem "openai", "~> 0.34.1"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -564,12 +564,14 @@ module OpenAI
564
564
  module ResponseFormat
565
565
  extend OpenAI::Internal::Type::Union
566
566
 
567
+ discriminator :type
568
+
567
569
  # Default response format. Used to generate text responses.
568
- variant -> { OpenAI::ResponseFormatText }
570
+ variant :text, -> { OpenAI::ResponseFormatText }
569
571
 
570
572
  # JSON Schema response format. Used to generate structured JSON responses.
571
573
  # Learn more about [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs).
572
- variant -> { OpenAI::ResponseFormatJSONSchema }
574
+ variant :json_schema, -> { OpenAI::ResponseFormatJSONSchema }
573
575
 
574
576
  # An {OpenAI::BaseModel} can be provided and implicitly converted into {OpenAI::Models::ResponseFormatJSONSchema}.
575
577
  # See examples for more details.
@@ -581,7 +583,7 @@ module OpenAI
581
583
  # Using `json_schema` is recommended for models that support it. Note that the
582
584
  # model will not generate JSON without a system or user message instructing it
583
585
  # to do so.
584
- variant -> { OpenAI::ResponseFormatJSONObject }
586
+ variant :json_object, -> { OpenAI::ResponseFormatJSONObject }
585
587
 
586
588
  # @!method self.variants
587
589
  # @return [Array(OpenAI::Models::ResponseFormatText, OpenAI::Models::ResponseFormatJSONSchema, OpenAI::Models::ResponseFormatJSONObject)]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OpenAI
4
- VERSION = "0.34.0"
4
+ VERSION = "0.34.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openai
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.34.0
4
+ version: 0.34.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAI