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
|
@@ -37,6 +37,24 @@ module OpenAI
|
|
|
37
37
|
)
|
|
38
38
|
end
|
|
39
39
|
|
|
40
|
+
# Deletes a voice created from a text prompt or an audio sample.
|
|
41
|
+
#
|
|
42
|
+
# Requires voice write permission and access to the voice's project. Access to
|
|
43
|
+
# voices created from recordings is limited to eligible customers. See the
|
|
44
|
+
# [custom voices guide](https://developers.openai.com/api/docs/guides/custom-voices).
|
|
45
|
+
#
|
|
46
|
+
# Deleting a voice does not delete its consent recording. Deleting an already
|
|
47
|
+
# deleted voice returns a 404 error.
|
|
48
|
+
sig {
|
|
49
|
+
params(voice_id: String, request_options: OpenAI::RequestOptions::OrHash).returns(OpenAI::Audio::VoiceDeleted)
|
|
50
|
+
}
|
|
51
|
+
def delete(
|
|
52
|
+
# The ID of the voice to delete.
|
|
53
|
+
voice_id,
|
|
54
|
+
request_options: {}
|
|
55
|
+
)
|
|
56
|
+
end
|
|
57
|
+
|
|
40
58
|
# @api private
|
|
41
59
|
sig { params(client: OpenAI::Client).returns(T.attached_class) }
|
|
42
60
|
def self.new(client:)
|
|
@@ -26,14 +26,13 @@ module OpenAI
|
|
|
26
26
|
.returns(OpenAI::Decision)
|
|
27
27
|
}
|
|
28
28
|
def create(
|
|
29
|
-
# The
|
|
30
|
-
# messages
|
|
31
|
-
#
|
|
32
|
-
# one request. Files, audio, tools, and item references are not supported.
|
|
29
|
+
# The input to evaluate for every question. Provide a text string or an ordered
|
|
30
|
+
# array of messages, function calls and outputs, or custom tool calls and outputs.
|
|
31
|
+
# Each tool output must identify a matching call by call ID.
|
|
33
32
|
input:,
|
|
34
33
|
# The model to use. Only `gpt-6-luna` is supported.
|
|
35
34
|
model:,
|
|
36
|
-
# Ask 1–
|
|
35
|
+
# Ask 1–400 questions about the input. Each question can be a predicate, choice,
|
|
37
36
|
# or score. Answers come back in the same order.
|
|
38
37
|
questions:,
|
|
39
38
|
# Partition prompt cache reuse by caller-provided key.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Models
|
|
3
|
+
module Audio
|
|
4
|
+
type voice_delete_params =
|
|
5
|
+
{ voice_id: String, ?request_options: OpenAI::request_opts }
|
|
6
|
+
|
|
7
|
+
class VoiceDeleteParams < OpenAI::Internal::Type::BaseModel
|
|
8
|
+
extend OpenAI::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include OpenAI::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor voice_id: String
|
|
12
|
+
|
|
13
|
+
def initialize: (
|
|
14
|
+
voice_id: String,
|
|
15
|
+
?request_options: OpenAI::request_opts
|
|
16
|
+
) -> void
|
|
17
|
+
|
|
18
|
+
def to_hash: -> {
|
|
19
|
+
voice_id: String,
|
|
20
|
+
?request_options: OpenAI::RequestOptions
|
|
21
|
+
}
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
module OpenAI
|
|
2
|
+
module Models
|
|
3
|
+
module Audio
|
|
4
|
+
type voice_deleted =
|
|
5
|
+
{ id: String, deleted: bool, ?object: :"audio.voice.deleted" }
|
|
6
|
+
|
|
7
|
+
class VoiceDeleted < OpenAI::Internal::Type::BaseModel
|
|
8
|
+
# The voice identifier.
|
|
9
|
+
attr_accessor id: String
|
|
10
|
+
|
|
11
|
+
# Whether the voice was deleted.
|
|
12
|
+
attr_accessor deleted: bool
|
|
13
|
+
|
|
14
|
+
# The object type, which is always `audio.voice.deleted`.
|
|
15
|
+
attr_accessor object: :"audio.voice.deleted"
|
|
16
|
+
|
|
17
|
+
# @param id
|
|
18
|
+
# The voice identifier.
|
|
19
|
+
# @param deleted
|
|
20
|
+
# Whether the voice was deleted.
|
|
21
|
+
# @param object
|
|
22
|
+
# The object type, which is always `audio.voice.deleted`.
|
|
23
|
+
def initialize: (
|
|
24
|
+
id: String,
|
|
25
|
+
deleted: bool,
|
|
26
|
+
?object: :"audio.voice.deleted"
|
|
27
|
+
) -> void
|
|
28
|
+
|
|
29
|
+
def to_hash: -> {
|
|
30
|
+
id: String,
|
|
31
|
+
deleted: bool,
|
|
32
|
+
?object: :"audio.voice.deleted"
|
|
33
|
+
}
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|