Skip to content

Commit cef2c0b

Browse files
feat(api): api update
1 parent 06c1eb0 commit cef2c0b

7 files changed

Lines changed: 4 additions & 206 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 147
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-9c802d45a9bf2a896b5fd22ac22bba185e8a145bd40ed242df9bb87a05e954eb.yml
3-
openapi_spec_hash: 97984ed69285e660b7d5c810c69ed449
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-d941452f026bbad07fe99ddd39154686a1f5689270f6be2ab40661c1d8982d15.yml
3+
openapi_spec_hash: b96a607abae511c4cea24a6f00c5a6f9
44
config_hash: 4fde9d6d4eb1de30bf2b6784f3da8bd8

lib/openai/models/responses/response_input_file.rb

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@ class ResponseInputFile < OpenAI::Internal::Type::BaseModel
1010
# @return [Symbol, :input_file]
1111
required :type, const: :input_file
1212

13-
# @!attribute detail
14-
# The detail level of the file to be sent to the model. One of `high` or `low`.
15-
# Defaults to `high`.
16-
#
17-
# @return [Symbol, OpenAI::Models::Responses::ResponseInputFile::Detail, nil]
18-
optional :detail, enum: -> { OpenAI::Responses::ResponseInputFile::Detail }
19-
2013
# @!attribute file_data
2114
# The content of the file to be sent to the model.
2215
#
@@ -41,14 +34,12 @@ class ResponseInputFile < OpenAI::Internal::Type::BaseModel
4134
# @return [String, nil]
4235
optional :filename, String
4336

44-
# @!method initialize(detail: nil, file_data: nil, file_id: nil, file_url: nil, filename: nil, type: :input_file)
37+
# @!method initialize(file_data: nil, file_id: nil, file_url: nil, filename: nil, type: :input_file)
4538
# Some parameter documentations has been truncated, see
4639
# {OpenAI::Models::Responses::ResponseInputFile} for more details.
4740
#
4841
# A file input to the model.
4942
#
50-
# @param detail [Symbol, OpenAI::Models::Responses::ResponseInputFile::Detail] The detail level of the file to be sent to the model. One of `high` or `low`. De
51-
#
5243
# @param file_data [String] The content of the file to be sent to the model.
5344
#
5445
# @param file_id [String, nil] The ID of the file to be sent to the model.
@@ -58,20 +49,6 @@ class ResponseInputFile < OpenAI::Internal::Type::BaseModel
5849
# @param filename [String] The name of the file to be sent to the model.
5950
#
6051
# @param type [Symbol, :input_file] The type of the input item. Always `input_file`.
61-
62-
# The detail level of the file to be sent to the model. One of `high` or `low`.
63-
# Defaults to `high`.
64-
#
65-
# @see OpenAI::Models::Responses::ResponseInputFile#detail
66-
module Detail
67-
extend OpenAI::Internal::Type::Enum
68-
69-
LOW = :low
70-
HIGH = :high
71-
72-
# @!method self.values
73-
# @return [Array<Symbol>]
74-
end
7552
end
7653
end
7754
end

lib/openai/models/responses/response_input_file_content.rb

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@ class ResponseInputFileContent < OpenAI::Internal::Type::BaseModel
1010
# @return [Symbol, :input_file]
1111
required :type, const: :input_file
1212

13-
# @!attribute detail
14-
# The detail level of the file to be sent to the model. One of `high` or `low`.
15-
# Defaults to `high`.
16-
#
17-
# @return [Symbol, OpenAI::Models::Responses::ResponseInputFileContent::Detail, nil]
18-
optional :detail, enum: -> { OpenAI::Responses::ResponseInputFileContent::Detail }
19-
2013
# @!attribute file_data
2114
# The base64-encoded data of the file to be sent to the model.
2215
#
@@ -41,14 +34,9 @@ class ResponseInputFileContent < OpenAI::Internal::Type::BaseModel
4134
# @return [String, nil]
4235
optional :filename, String, nil?: true
4336

44-
# @!method initialize(detail: nil, file_data: nil, file_id: nil, file_url: nil, filename: nil, type: :input_file)
45-
# Some parameter documentations has been truncated, see
46-
# {OpenAI::Models::Responses::ResponseInputFileContent} for more details.
47-
#
37+
# @!method initialize(file_data: nil, file_id: nil, file_url: nil, filename: nil, type: :input_file)
4838
# A file input to the model.
4939
#
50-
# @param detail [Symbol, OpenAI::Models::Responses::ResponseInputFileContent::Detail] The detail level of the file to be sent to the model. One of `high` or `low`. De
51-
#
5240
# @param file_data [String, nil] The base64-encoded data of the file to be sent to the model.
5341
#
5442
# @param file_id [String, nil] The ID of the file to be sent to the model.
@@ -58,20 +46,6 @@ class ResponseInputFileContent < OpenAI::Internal::Type::BaseModel
5846
# @param filename [String, nil] The name of the file to be sent to the model.
5947
#
6048
# @param type [Symbol, :input_file] The type of the input item. Always `input_file`.
61-
62-
# The detail level of the file to be sent to the model. One of `high` or `low`.
63-
# Defaults to `high`.
64-
#
65-
# @see OpenAI::Models::Responses::ResponseInputFileContent#detail
66-
module Detail
67-
extend OpenAI::Internal::Type::Enum
68-
69-
HIGH = :high
70-
LOW = :low
71-
72-
# @!method self.values
73-
# @return [Array<Symbol>]
74-
end
7549
end
7650
end
7751
end

rbi/openai/models/responses/response_input_file.rbi

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,6 @@ module OpenAI
1616
sig { returns(Symbol) }
1717
attr_accessor :type
1818

19-
# The detail level of the file to be sent to the model. One of `high` or `low`.
20-
# Defaults to `high`.
21-
sig do
22-
returns(
23-
T.nilable(OpenAI::Responses::ResponseInputFile::Detail::OrSymbol)
24-
)
25-
end
26-
attr_reader :detail
27-
28-
sig do
29-
params(
30-
detail: OpenAI::Responses::ResponseInputFile::Detail::OrSymbol
31-
).void
32-
end
33-
attr_writer :detail
34-
3519
# The content of the file to be sent to the model.
3620
sig { returns(T.nilable(String)) }
3721
attr_reader :file_data
@@ -60,7 +44,6 @@ module OpenAI
6044
# A file input to the model.
6145
sig do
6246
params(
63-
detail: OpenAI::Responses::ResponseInputFile::Detail::OrSymbol,
6447
file_data: String,
6548
file_id: T.nilable(String),
6649
file_url: String,
@@ -69,9 +52,6 @@ module OpenAI
6952
).returns(T.attached_class)
7053
end
7154
def self.new(
72-
# The detail level of the file to be sent to the model. One of `high` or `low`.
73-
# Defaults to `high`.
74-
detail: nil,
7555
# The content of the file to be sent to the model.
7656
file_data: nil,
7757
# The ID of the file to be sent to the model.
@@ -89,7 +69,6 @@ module OpenAI
8969
override.returns(
9070
{
9171
type: Symbol,
92-
detail: OpenAI::Responses::ResponseInputFile::Detail::OrSymbol,
9372
file_data: String,
9473
file_id: T.nilable(String),
9574
file_url: String,
@@ -99,39 +78,6 @@ module OpenAI
9978
end
10079
def to_hash
10180
end
102-
103-
# The detail level of the file to be sent to the model. One of `high` or `low`.
104-
# Defaults to `high`.
105-
module Detail
106-
extend OpenAI::Internal::Type::Enum
107-
108-
TaggedSymbol =
109-
T.type_alias do
110-
T.all(Symbol, OpenAI::Responses::ResponseInputFile::Detail)
111-
end
112-
OrSymbol = T.type_alias { T.any(Symbol, String) }
113-
114-
LOW =
115-
T.let(
116-
:low,
117-
OpenAI::Responses::ResponseInputFile::Detail::TaggedSymbol
118-
)
119-
HIGH =
120-
T.let(
121-
:high,
122-
OpenAI::Responses::ResponseInputFile::Detail::TaggedSymbol
123-
)
124-
125-
sig do
126-
override.returns(
127-
T::Array[
128-
OpenAI::Responses::ResponseInputFile::Detail::TaggedSymbol
129-
]
130-
)
131-
end
132-
def self.values
133-
end
134-
end
13581
end
13682
end
13783
end

rbi/openai/models/responses/response_input_file_content.rbi

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,6 @@ module OpenAI
1616
sig { returns(Symbol) }
1717
attr_accessor :type
1818

19-
# The detail level of the file to be sent to the model. One of `high` or `low`.
20-
# Defaults to `high`.
21-
sig do
22-
returns(
23-
T.nilable(
24-
OpenAI::Responses::ResponseInputFileContent::Detail::OrSymbol
25-
)
26-
)
27-
end
28-
attr_reader :detail
29-
30-
sig do
31-
params(
32-
detail:
33-
OpenAI::Responses::ResponseInputFileContent::Detail::OrSymbol
34-
).void
35-
end
36-
attr_writer :detail
37-
3819
# The base64-encoded data of the file to be sent to the model.
3920
sig { returns(T.nilable(String)) }
4021
attr_accessor :file_data
@@ -54,8 +35,6 @@ module OpenAI
5435
# A file input to the model.
5536
sig do
5637
params(
57-
detail:
58-
OpenAI::Responses::ResponseInputFileContent::Detail::OrSymbol,
5938
file_data: T.nilable(String),
6039
file_id: T.nilable(String),
6140
file_url: T.nilable(String),
@@ -64,9 +43,6 @@ module OpenAI
6443
).returns(T.attached_class)
6544
end
6645
def self.new(
67-
# The detail level of the file to be sent to the model. One of `high` or `low`.
68-
# Defaults to `high`.
69-
detail: nil,
7046
# The base64-encoded data of the file to be sent to the model.
7147
file_data: nil,
7248
# The ID of the file to be sent to the model.
@@ -84,8 +60,6 @@ module OpenAI
8460
override.returns(
8561
{
8662
type: Symbol,
87-
detail:
88-
OpenAI::Responses::ResponseInputFileContent::Detail::OrSymbol,
8963
file_data: T.nilable(String),
9064
file_id: T.nilable(String),
9165
file_url: T.nilable(String),
@@ -95,39 +69,6 @@ module OpenAI
9569
end
9670
def to_hash
9771
end
98-
99-
# The detail level of the file to be sent to the model. One of `high` or `low`.
100-
# Defaults to `high`.
101-
module Detail
102-
extend OpenAI::Internal::Type::Enum
103-
104-
TaggedSymbol =
105-
T.type_alias do
106-
T.all(Symbol, OpenAI::Responses::ResponseInputFileContent::Detail)
107-
end
108-
OrSymbol = T.type_alias { T.any(Symbol, String) }
109-
110-
HIGH =
111-
T.let(
112-
:high,
113-
OpenAI::Responses::ResponseInputFileContent::Detail::TaggedSymbol
114-
)
115-
LOW =
116-
T.let(
117-
:low,
118-
OpenAI::Responses::ResponseInputFileContent::Detail::TaggedSymbol
119-
)
120-
121-
sig do
122-
override.returns(
123-
T::Array[
124-
OpenAI::Responses::ResponseInputFileContent::Detail::TaggedSymbol
125-
]
126-
)
127-
end
128-
def self.values
129-
end
130-
end
13172
end
13273
end
13374
end

sig/openai/models/responses/response_input_file.rbs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ module OpenAI
44
type response_input_file =
55
{
66
type: :input_file,
7-
detail: OpenAI::Models::Responses::ResponseInputFile::detail,
87
file_data: String,
98
file_id: String?,
109
file_url: String,
@@ -14,12 +13,6 @@ module OpenAI
1413
class ResponseInputFile < OpenAI::Internal::Type::BaseModel
1514
attr_accessor type: :input_file
1615

17-
attr_reader detail: OpenAI::Models::Responses::ResponseInputFile::detail?
18-
19-
def detail=: (
20-
OpenAI::Models::Responses::ResponseInputFile::detail
21-
) -> OpenAI::Models::Responses::ResponseInputFile::detail
22-
2316
attr_reader file_data: String?
2417

2518
def file_data=: (String) -> String
@@ -35,7 +28,6 @@ module OpenAI
3528
def filename=: (String) -> String
3629

3730
def initialize: (
38-
?detail: OpenAI::Models::Responses::ResponseInputFile::detail,
3931
?file_data: String,
4032
?file_id: String?,
4133
?file_url: String,
@@ -45,23 +37,11 @@ module OpenAI
4537

4638
def to_hash: -> {
4739
type: :input_file,
48-
detail: OpenAI::Models::Responses::ResponseInputFile::detail,
4940
file_data: String,
5041
file_id: String?,
5142
file_url: String,
5243
filename: String
5344
}
54-
55-
type detail = :low | :high
56-
57-
module Detail
58-
extend OpenAI::Internal::Type::Enum
59-
60-
LOW: :low
61-
HIGH: :high
62-
63-
def self?.values: -> ::Array[OpenAI::Models::Responses::ResponseInputFile::detail]
64-
end
6545
end
6646
end
6747
end

sig/openai/models/responses/response_input_file_content.rbs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ module OpenAI
44
type response_input_file_content =
55
{
66
type: :input_file,
7-
detail: OpenAI::Models::Responses::ResponseInputFileContent::detail,
87
file_data: String?,
98
file_id: String?,
109
file_url: String?,
@@ -14,12 +13,6 @@ module OpenAI
1413
class ResponseInputFileContent < OpenAI::Internal::Type::BaseModel
1514
attr_accessor type: :input_file
1615

17-
attr_reader detail: OpenAI::Models::Responses::ResponseInputFileContent::detail?
18-
19-
def detail=: (
20-
OpenAI::Models::Responses::ResponseInputFileContent::detail
21-
) -> OpenAI::Models::Responses::ResponseInputFileContent::detail
22-
2316
attr_accessor file_data: String?
2417

2518
attr_accessor file_id: String?
@@ -29,7 +22,6 @@ module OpenAI
2922
attr_accessor filename: String?
3023

3124
def initialize: (
32-
?detail: OpenAI::Models::Responses::ResponseInputFileContent::detail,
3325
?file_data: String?,
3426
?file_id: String?,
3527
?file_url: String?,
@@ -39,23 +31,11 @@ module OpenAI
3931

4032
def to_hash: -> {
4133
type: :input_file,
42-
detail: OpenAI::Models::Responses::ResponseInputFileContent::detail,
4334
file_data: String?,
4435
file_id: String?,
4536
file_url: String?,
4637
filename: String?
4738
}
48-
49-
type detail = :high | :low
50-
51-
module Detail
52-
extend OpenAI::Internal::Type::Enum
53-
54-
HIGH: :high
55-
LOW: :low
56-
57-
def self?.values: -> ::Array[OpenAI::Models::Responses::ResponseInputFileContent::detail]
58-
end
5939
end
6040
end
6141
end

0 commit comments

Comments
 (0)