Skip to content

Commit ac3e58b

Browse files
feat(api): comparison filter in/not in
1 parent d18c5af commit ac3e58b

37 files changed

+275
-22
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 135
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-d64cf80d2ebddf175c5578f68226a3d5bbd3f7fd8d62ccac2205f3fc05a355ee.yml
3-
openapi_spec_hash: d51e0d60d0c536f210b597a211bc5af0
4-
config_hash: e7c42016df9c6bd7bd6ff15101b9bc9b
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-e66e85fb7f72477256dca1acb6b23396989d381c5c1b318de564195436bcb93f.yml
3+
openapi_spec_hash: 0a4bbb5aa0ae532a072bd6b3854e70b1
4+
config_hash: 89bf7bb3a1f9439ffc6ea0e7dc57ba9b

lib/openai/models/beta/assistant_create_params.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ class AssistantCreateParams < OpenAI::Internal::Type::BaseModel
5555
# effort can result in faster responses and fewer tokens used on reasoning in a
5656
# response.
5757
#
58+
# Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
59+
# effort.
60+
#
5861
# @return [Symbol, OpenAI::Models::ReasoningEffort, nil]
5962
optional :reasoning_effort, enum: -> { OpenAI::ReasoningEffort }, nil?: true
6063

lib/openai/models/beta/assistant_update_params.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ class AssistantUpdateParams < OpenAI::Internal::Type::BaseModel
5555
# effort can result in faster responses and fewer tokens used on reasoning in a
5656
# response.
5757
#
58+
# Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
59+
# effort.
60+
#
5861
# @return [Symbol, OpenAI::Models::ReasoningEffort, nil]
5962
optional :reasoning_effort, enum: -> { OpenAI::ReasoningEffort }, nil?: true
6063

lib/openai/models/beta/threads/run_create_params.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ class RunCreateParams < OpenAI::Internal::Type::BaseModel
113113
# effort can result in faster responses and fewer tokens used on reasoning in a
114114
# response.
115115
#
116+
# Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
117+
# effort.
118+
#
116119
# @return [Symbol, OpenAI::Models::ReasoningEffort, nil]
117120
optional :reasoning_effort, enum: -> { OpenAI::ReasoningEffort }, nil?: true
118121

lib/openai/models/chat/completion_create_params.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ class CompletionCreateParams < OpenAI::Internal::Type::BaseModel
197197
# effort can result in faster responses and fewer tokens used on reasoning in a
198198
# response.
199199
#
200+
# Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
201+
# effort.
202+
#
200203
# @return [Symbol, OpenAI::Models::ReasoningEffort, nil]
201204
optional :reasoning_effort, enum: -> { OpenAI::ReasoningEffort }, nil?: true
202205

lib/openai/models/comparison_filter.rb

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,17 @@ class ComparisonFilter < OpenAI::Internal::Type::BaseModel
1010
required :key, String
1111

1212
# @!attribute type
13-
# Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`.
13+
# Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`, `in`,
14+
# `nin`.
1415
#
1516
# - `eq`: equals
1617
# - `ne`: not equal
1718
# - `gt`: greater than
1819
# - `gte`: greater than or equal
1920
# - `lt`: less than
2021
# - `lte`: less than or equal
22+
# - `in`: in
23+
# - `nin`: not in
2124
#
2225
# @return [Symbol, OpenAI::Models::ComparisonFilter::Type]
2326
required :type, enum: -> { OpenAI::ComparisonFilter::Type }
@@ -26,7 +29,7 @@ class ComparisonFilter < OpenAI::Internal::Type::BaseModel
2629
# The value to compare against the attribute key; supports string, number, or
2730
# boolean types.
2831
#
29-
# @return [String, Float, Boolean]
32+
# @return [String, Float, Boolean, Array<String, Float>]
3033
required :value, union: -> { OpenAI::ComparisonFilter::Value }
3134

3235
# @!method initialize(key:, type:, value:)
@@ -38,18 +41,21 @@ class ComparisonFilter < OpenAI::Internal::Type::BaseModel
3841
#
3942
# @param key [String] The key to compare against the value.
4043
#
41-
# @param type [Symbol, OpenAI::Models::ComparisonFilter::Type] Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`.
44+
# @param type [Symbol, OpenAI::Models::ComparisonFilter::Type] Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`, `in`, `
4245
#
43-
# @param value [String, Float, Boolean] The value to compare against the attribute key; supports string, number, or bool
46+
# @param value [String, Float, Boolean, Array<String, Float>] The value to compare against the attribute key; supports string, number, or bool
4447

45-
# Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`.
48+
# Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`, `in`,
49+
# `nin`.
4650
#
4751
# - `eq`: equals
4852
# - `ne`: not equal
4953
# - `gt`: greater than
5054
# - `gte`: greater than or equal
5155
# - `lt`: less than
5256
# - `lte`: less than or equal
57+
# - `in`: in
58+
# - `nin`: not in
5359
#
5460
# @see OpenAI::Models::ComparisonFilter#type
5561
module Type
@@ -79,8 +85,25 @@ module Value
7985

8086
variant OpenAI::Internal::Type::Boolean
8187

88+
variant -> { OpenAI::Models::ComparisonFilter::Value::UnionMember3Array }
89+
90+
module UnionMember3
91+
extend OpenAI::Internal::Type::Union
92+
93+
variant String
94+
95+
variant Float
96+
97+
# @!method self.variants
98+
# @return [Array(String, Float)]
99+
end
100+
82101
# @!method self.variants
83-
# @return [Array(String, Float, Boolean)]
102+
# @return [Array(String, Float, Boolean, Array<String, Float>)]
103+
104+
# @type [OpenAI::Internal::Type::Converter]
105+
UnionMember3Array =
106+
OpenAI::Internal::Type::ArrayOf[union: -> { OpenAI::ComparisonFilter::Value::UnionMember3 }]
84107
end
85108
end
86109
end

lib/openai/models/evals/create_eval_completions_run_data_source.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,9 @@ class SamplingParams < OpenAI::Internal::Type::BaseModel
466466
# effort can result in faster responses and fewer tokens used on reasoning in a
467467
# response.
468468
#
469+
# Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
470+
# effort.
471+
#
469472
# @return [Symbol, OpenAI::Models::ReasoningEffort, nil]
470473
optional :reasoning_effort, enum: -> { OpenAI::ReasoningEffort }, nil?: true
471474

lib/openai/models/evals/run_cancel_response.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,9 @@ class Responses < OpenAI::Internal::Type::BaseModel
320320
# effort can result in faster responses and fewer tokens used on reasoning in a
321321
# response.
322322
#
323+
# Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
324+
# effort.
325+
#
323326
# @return [Symbol, OpenAI::Models::ReasoningEffort, nil]
324327
optional :reasoning_effort, enum: -> { OpenAI::ReasoningEffort }, nil?: true
325328

@@ -661,6 +664,9 @@ class SamplingParams < OpenAI::Internal::Type::BaseModel
661664
# effort can result in faster responses and fewer tokens used on reasoning in a
662665
# response.
663666
#
667+
# Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
668+
# effort.
669+
#
664670
# @return [Symbol, OpenAI::Models::ReasoningEffort, nil]
665671
optional :reasoning_effort, enum: -> { OpenAI::ReasoningEffort }, nil?: true
666672

lib/openai/models/evals/run_create_params.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,9 @@ class Responses < OpenAI::Internal::Type::BaseModel
232232
# effort can result in faster responses and fewer tokens used on reasoning in a
233233
# response.
234234
#
235+
# Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
236+
# effort.
237+
#
235238
# @return [Symbol, OpenAI::Models::ReasoningEffort, nil]
236239
optional :reasoning_effort, enum: -> { OpenAI::ReasoningEffort }, nil?: true
237240

@@ -589,6 +592,9 @@ class SamplingParams < OpenAI::Internal::Type::BaseModel
589592
# effort can result in faster responses and fewer tokens used on reasoning in a
590593
# response.
591594
#
595+
# Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
596+
# effort.
597+
#
592598
# @return [Symbol, OpenAI::Models::ReasoningEffort, nil]
593599
optional :reasoning_effort, enum: -> { OpenAI::ReasoningEffort }, nil?: true
594600

lib/openai/models/evals/run_create_response.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,9 @@ class Responses < OpenAI::Internal::Type::BaseModel
320320
# effort can result in faster responses and fewer tokens used on reasoning in a
321321
# response.
322322
#
323+
# Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
324+
# effort.
325+
#
323326
# @return [Symbol, OpenAI::Models::ReasoningEffort, nil]
324327
optional :reasoning_effort, enum: -> { OpenAI::ReasoningEffort }, nil?: true
325328

@@ -661,6 +664,9 @@ class SamplingParams < OpenAI::Internal::Type::BaseModel
661664
# effort can result in faster responses and fewer tokens used on reasoning in a
662665
# response.
663666
#
667+
# Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
668+
# effort.
669+
#
664670
# @return [Symbol, OpenAI::Models::ReasoningEffort, nil]
665671
optional :reasoning_effort, enum: -> { OpenAI::ReasoningEffort }, nil?: true
666672

0 commit comments

Comments
 (0)