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 +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/openai/models/chat/completion_create_params.rb +5 -3
- data/lib/openai/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 239d8995ddf81e712fa9ef923ab3a86fed0dd8c65b6ce186121783d598cf695f
|
4
|
+
data.tar.gz: 533d8fdd429bab5d03bd4be0135ec093b6c382860fe221afcdbd7e0bd25feee6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
@@ -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)]
|
data/lib/openai/version.rb
CHANGED