@@ -10,14 +10,17 @@ class ComparisonFilter < OpenAI::Internal::Type::BaseModel
10
10
required :key , String
11
11
12
12
# @!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`.
14
15
#
15
16
# - `eq`: equals
16
17
# - `ne`: not equal
17
18
# - `gt`: greater than
18
19
# - `gte`: greater than or equal
19
20
# - `lt`: less than
20
21
# - `lte`: less than or equal
22
+ # - `in`: in
23
+ # - `nin`: not in
21
24
#
22
25
# @return [Symbol, OpenAI::Models::ComparisonFilter::Type]
23
26
required :type , enum : -> { OpenAI ::ComparisonFilter ::Type }
@@ -26,7 +29,7 @@ class ComparisonFilter < OpenAI::Internal::Type::BaseModel
26
29
# The value to compare against the attribute key; supports string, number, or
27
30
# boolean types.
28
31
#
29
- # @return [String, Float, Boolean]
32
+ # @return [String, Float, Boolean, Array<String, Float> ]
30
33
required :value , union : -> { OpenAI ::ComparisonFilter ::Value }
31
34
32
35
# @!method initialize(key:, type:, value:)
@@ -38,18 +41,21 @@ class ComparisonFilter < OpenAI::Internal::Type::BaseModel
38
41
#
39
42
# @param key [String] The key to compare against the value.
40
43
#
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`, `
42
45
#
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
44
47
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`.
46
50
#
47
51
# - `eq`: equals
48
52
# - `ne`: not equal
49
53
# - `gt`: greater than
50
54
# - `gte`: greater than or equal
51
55
# - `lt`: less than
52
56
# - `lte`: less than or equal
57
+ # - `in`: in
58
+ # - `nin`: not in
53
59
#
54
60
# @see OpenAI::Models::ComparisonFilter#type
55
61
module Type
@@ -79,8 +85,25 @@ module Value
79
85
80
86
variant OpenAI ::Internal ::Type ::Boolean
81
87
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
+
82
101
# @!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 } ]
84
107
end
85
108
end
86
109
end
0 commit comments