Skip to content

Commit 70c8bf5

Browse files
feat(api): add in/nin operators to ComparisonFilter
1 parent 1a5054f commit 70c8bf5

4 files changed

Lines changed: 9 additions & 3 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: 151
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-2ab0731e8c94b7c783b55939d2d2a46c2594c1da2ec444c543e17a9eea6d9164.yml
3-
openapi_spec_hash: 5557d4cd48565e8b98dfcb96a5804965
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-5a660d5b485aae5061d55301f7c8522654a533c7d7d9596c4da54f0e481d8880.yml
3+
openapi_spec_hash: 50297cf7c625ec3c4bb0bc0f5a9d318a
44
config_hash: 96fbf82cf74a44ccd513f5acf0956ffd

lib/openai/models/comparison_filter.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ module Type
6767
GTE = :gte
6868
LT = :lt
6969
LTE = :lte
70+
IN = :in
71+
NIN = :nin
7072

7173
# @!method self.values
7274
# @return [Array<Symbol>]

rbi/openai/models/comparison_filter.rbi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ module OpenAI
9797
GTE = T.let(:gte, OpenAI::ComparisonFilter::Type::TaggedSymbol)
9898
LT = T.let(:lt, OpenAI::ComparisonFilter::Type::TaggedSymbol)
9999
LTE = T.let(:lte, OpenAI::ComparisonFilter::Type::TaggedSymbol)
100+
IN = T.let(:in, OpenAI::ComparisonFilter::Type::TaggedSymbol)
101+
NIN = T.let(:nin, OpenAI::ComparisonFilter::Type::TaggedSymbol)
100102

101103
sig do
102104
override.returns(

sig/openai/models/comparison_filter.rbs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module OpenAI
2626
value: OpenAI::Models::ComparisonFilter::value
2727
}
2828

29-
type type_ = :eq | :ne | :gt | :gte | :lt | :lte
29+
type type_ = :eq | :ne | :gt | :gte | :lt | :lte | :in | :nin
3030

3131
module Type
3232
extend OpenAI::Internal::Type::Enum
@@ -37,6 +37,8 @@ module OpenAI
3737
GTE: :gte
3838
LT: :lt
3939
LTE: :lte
40+
IN: :in
41+
NIN: :nin
4042

4143
def self?.values: -> ::Array[OpenAI::Models::ComparisonFilter::type_]
4244
end

0 commit comments

Comments
 (0)