openai 0.109.0 → 0.111.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 +24 -0
- data/README.md +1 -1
- data/lib/openai/models/audio/voice_delete_params.rb +22 -0
- data/lib/openai/models/audio/voice_deleted.rb +38 -0
- data/lib/openai/models/decision_create_params.rb +798 -28
- data/lib/openai/models/decision_input_json.rb +45 -0
- data/lib/openai/models/decision_input_message.rb +304 -48
- data/lib/openai/models/decision_input_part.rb +4 -1
- data/lib/openai/models/decision_question_input_image.rb +54 -0
- data/lib/openai/models/decision_question_input_part.rb +23 -0
- data/lib/openai/models/decision_question_input_text.rb +21 -0
- data/lib/openai/models/live/decision_trigger.rb +82 -9
- data/lib/openai/models/live/decisions_delegation_config.rb +82 -9
- data/lib/openai/models/live/decisions_delegation_update_config.rb +82 -9
- data/lib/openai/models.rb +8 -0
- data/lib/openai/resources/admin/organization/projects/api_keys.rb +5 -3
- data/lib/openai/resources/audio/voices.rb +29 -0
- data/lib/openai/resources/decisions.rb +5 -6
- data/lib/openai/version.rb +1 -1
- data/lib/openai.rb +6 -0
- data/rbi/openai/models/audio/voice_delete_params.rbi +53 -0
- data/rbi/openai/models/audio/voice_deleted.rbi +67 -0
- data/rbi/openai/models/decision_create_params.rbi +1273 -26
- data/rbi/openai/models/decision_input_json.rbi +75 -0
- data/rbi/openai/models/decision_input_message.rbi +455 -52
- data/rbi/openai/models/decision_input_part.rbi +2 -1
- data/rbi/openai/models/decision_question_input_image.rbi +82 -0
- data/rbi/openai/models/decision_question_input_part.rbi +25 -0
- data/rbi/openai/models/decision_question_input_text.rbi +49 -0
- data/rbi/openai/models/live/decision_trigger.rbi +72 -9
- data/rbi/openai/models/live/decisions_delegation_config.rbi +72 -9
- data/rbi/openai/models/live/decisions_delegation_update_config.rbi +72 -9
- data/rbi/openai/models.rbi +8 -0
- data/rbi/openai/resources/admin/organization/projects/api_keys.rbi +5 -3
- data/rbi/openai/resources/audio/voices.rbi +18 -0
- data/rbi/openai/resources/decisions.rbi +4 -5
- data/sig/openai/models/audio/voice_delete_params.rbs +25 -0
- data/sig/openai/models/audio/voice_deleted.rbs +37 -0
- data/sig/openai/models/decision_create_params.rbs +610 -24
- data/sig/openai/models/decision_input_json.rbs +34 -0
- data/sig/openai/models/decision_input_message.rbs +264 -35
- data/sig/openai/models/decision_input_part.rbs +3 -1
- data/sig/openai/models/decision_question_input_image.rbs +51 -0
- data/sig/openai/models/decision_question_input_part.rbs +14 -0
- data/sig/openai/models/decision_question_input_text.rbs +15 -0
- data/sig/openai/models/live/decision_trigger.rbs +49 -12
- data/sig/openai/models/live/decisions_delegation_config.rbs +49 -12
- data/sig/openai/models/live/decisions_delegation_update_config.rbs +49 -12
- data/sig/openai/models.rbs +9 -1
- data/sig/openai/resources/audio/voices.rbs +5 -0
- metadata +19 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5c3a397f39a65a401262afe470818b903373e6f5ce1d23cc525d594e60230c99
|
|
4
|
+
data.tar.gz: b1e4d78ffe270f88e1f4867df5560c4979e13a6a9f7a208fe26d46b5b6150ffa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: df7fcc802346afe0280fb0554e394ce27979725a8ed91dc8d49fa070c0fa4db0f5ff29e4d18ba8c880ce955b6bbd53c43232551dd3e3533724a4066d705e75a4
|
|
7
|
+
data.tar.gz: 0107cb35d2a615a182bea31a4f58fd191412966f92189521fbae596ff75bf485d998556ad2e6d801ba0456d9a01b74859ceffd2eee96ec8fbc1eb27c50d40a76
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.111.0](https://github.com/openai/openai-ruby/compare/v0.110.0...v0.111.0) (2026-10-22)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **api: Breaking change in a minor release.** A Live response question’s `instructions` can now be a string or an array of text, image, or JSON parts. Code like `question.instructions.strip` will fail if it receives an array. Check `question.instructions.is_a?(String)` and handle the array case. Decisions request inputs can also contain new message roles and tool-history items, so update code that assumes it knows every input type. Replace `OpenAI::DecisionInputMessage.new(content: ...)` with `OpenAI::DecisionInputMessage::User.new(content: ...)` for user-message inputs. Existing string instructions still work. ([#959](https://github.com/openai/openai-ruby/issues/959)) ([ff91bf6](https://github.com/openai/openai-ruby/commit/ff91bf63d2c8a565b155d554c70f45a0fb6efc1f))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Chores
|
|
12
|
+
|
|
13
|
+
* **deps:** bump ruby/setup-ruby from 1.331.0 to 1.332.0 ([#958](https://github.com/openai/openai-ruby/issues/958)) ([38170d0](https://github.com/openai/openai-ruby/commit/38170d06553453c0223e317dd4eb0579bc22223f))
|
|
14
|
+
|
|
15
|
+
## [0.110.0](https://github.com/openai/openai-ruby/compare/v0.109.0...v0.110.0) (2026-10-22)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* **api:** add voice deletion ([#954](https://github.com/openai/openai-ruby/issues/954)) ([a6257f2](https://github.com/openai/openai-ruby/commit/a6257f2737b1b98d6bda684a4fed8e2726052a3a))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Chores
|
|
24
|
+
|
|
25
|
+
* **api:** clarify service-account API key deletion ([#956](https://github.com/openai/openai-ruby/issues/956)) ([fac910a](https://github.com/openai/openai-ruby/commit/fac910a671e53a7c5499e1cb323dffe23c9e247d))
|
|
26
|
+
|
|
3
27
|
## [0.109.0](https://github.com/openai/openai-ruby/compare/v0.108.0...v0.109.0) (2026-10-21)
|
|
4
28
|
|
|
5
29
|
|
data/README.md
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module OpenAI
|
|
4
|
+
module Models
|
|
5
|
+
module Audio
|
|
6
|
+
# @see OpenAI::Resources::Audio::Voices#delete
|
|
7
|
+
class VoiceDeleteParams < OpenAI::Internal::Type::BaseModel
|
|
8
|
+
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include OpenAI::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute voice_id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :voice_id, String
|
|
15
|
+
|
|
16
|
+
# @!method initialize(voice_id:, request_options: {})
|
|
17
|
+
# @param voice_id [String]
|
|
18
|
+
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module OpenAI
|
|
4
|
+
module Models
|
|
5
|
+
module Audio
|
|
6
|
+
# @see OpenAI::Resources::Audio::Voices#delete
|
|
7
|
+
class VoiceDeleted < OpenAI::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute id
|
|
9
|
+
# The voice identifier.
|
|
10
|
+
#
|
|
11
|
+
# @return [String]
|
|
12
|
+
required :id, String
|
|
13
|
+
|
|
14
|
+
# @!attribute deleted
|
|
15
|
+
# Whether the voice was deleted.
|
|
16
|
+
#
|
|
17
|
+
# @return [Boolean]
|
|
18
|
+
required :deleted, OpenAI::Internal::Type::Boolean
|
|
19
|
+
|
|
20
|
+
# @!attribute object
|
|
21
|
+
# The object type, which is always `audio.voice.deleted`.
|
|
22
|
+
#
|
|
23
|
+
# @return [Symbol, :"audio.voice.deleted"]
|
|
24
|
+
required :object, const: :"audio.voice.deleted"
|
|
25
|
+
|
|
26
|
+
# @!method initialize(id:, deleted:, object: :"audio.voice.deleted")
|
|
27
|
+
# @param id [String]
|
|
28
|
+
# The voice identifier.
|
|
29
|
+
#
|
|
30
|
+
# @param deleted [Boolean]
|
|
31
|
+
# Whether the voice was deleted.
|
|
32
|
+
#
|
|
33
|
+
# @param object [Symbol, :"audio.voice.deleted"]
|
|
34
|
+
# The object type, which is always `audio.voice.deleted`.
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|