Skip to content

Commit 1013c14

Browse files
feat(api): comparison filter in/not in
1 parent 5c53725 commit 1013c14

File tree

9 files changed

+64
-7
lines changed

9 files changed

+64
-7
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

src/resources/beta/assistants.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,6 +1163,9 @@ export interface AssistantCreateParams {
11631163
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
11641164
* effort can result in faster responses and fewer tokens used on reasoning in a
11651165
* response.
1166+
*
1167+
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
1168+
* effort.
11661169
*/
11671170
reasoning_effort?: Shared.ReasoningEffort | null;
11681171

@@ -1416,6 +1419,9 @@ export interface AssistantUpdateParams {
14161419
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
14171420
* effort can result in faster responses and fewer tokens used on reasoning in a
14181421
* response.
1422+
*
1423+
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
1424+
* effort.
14191425
*/
14201426
reasoning_effort?: Shared.ReasoningEffort | null;
14211427

src/resources/beta/threads/runs/runs.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,9 @@ export interface RunCreateParamsBase {
728728
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
729729
* effort can result in faster responses and fewer tokens used on reasoning in a
730730
* response.
731+
*
732+
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
733+
* effort.
731734
*/
732735
reasoning_effort?: Shared.ReasoningEffort | null;
733736

src/resources/chat/completions/completions.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1644,6 +1644,9 @@ export interface ChatCompletionCreateParamsBase {
16441644
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
16451645
* effort can result in faster responses and fewer tokens used on reasoning in a
16461646
* response.
1647+
*
1648+
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
1649+
* effort.
16471650
*/
16481651
reasoning_effort?: Shared.ReasoningEffort | null;
16491652

src/resources/evals/runs/runs.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,9 @@ export namespace CreateEvalCompletionsRunDataSource {
291291
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
292292
* effort can result in faster responses and fewer tokens used on reasoning in a
293293
* response.
294+
*
295+
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
296+
* effort.
294297
*/
295298
reasoning_effort?: Shared.ReasoningEffort | null;
296299

@@ -592,6 +595,9 @@ export namespace RunCreateResponse {
592595
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
593596
* effort can result in faster responses and fewer tokens used on reasoning in a
594597
* response.
598+
*
599+
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
600+
* effort.
595601
*/
596602
reasoning_effort?: Shared.ReasoningEffort | null;
597603

@@ -736,6 +742,9 @@ export namespace RunCreateResponse {
736742
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
737743
* effort can result in faster responses and fewer tokens used on reasoning in a
738744
* response.
745+
*
746+
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
747+
* effort.
739748
*/
740749
reasoning_effort?: Shared.ReasoningEffort | null;
741750

@@ -1078,6 +1087,9 @@ export namespace RunRetrieveResponse {
10781087
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
10791088
* effort can result in faster responses and fewer tokens used on reasoning in a
10801089
* response.
1090+
*
1091+
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
1092+
* effort.
10811093
*/
10821094
reasoning_effort?: Shared.ReasoningEffort | null;
10831095

@@ -1222,6 +1234,9 @@ export namespace RunRetrieveResponse {
12221234
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
12231235
* effort can result in faster responses and fewer tokens used on reasoning in a
12241236
* response.
1237+
*
1238+
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
1239+
* effort.
12251240
*/
12261241
reasoning_effort?: Shared.ReasoningEffort | null;
12271242

@@ -1561,6 +1576,9 @@ export namespace RunListResponse {
15611576
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
15621577
* effort can result in faster responses and fewer tokens used on reasoning in a
15631578
* response.
1579+
*
1580+
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
1581+
* effort.
15641582
*/
15651583
reasoning_effort?: Shared.ReasoningEffort | null;
15661584

@@ -1705,6 +1723,9 @@ export namespace RunListResponse {
17051723
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
17061724
* effort can result in faster responses and fewer tokens used on reasoning in a
17071725
* response.
1726+
*
1727+
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
1728+
* effort.
17081729
*/
17091730
reasoning_effort?: Shared.ReasoningEffort | null;
17101731

@@ -2055,6 +2076,9 @@ export namespace RunCancelResponse {
20552076
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
20562077
* effort can result in faster responses and fewer tokens used on reasoning in a
20572078
* response.
2079+
*
2080+
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
2081+
* effort.
20582082
*/
20592083
reasoning_effort?: Shared.ReasoningEffort | null;
20602084

@@ -2199,6 +2223,9 @@ export namespace RunCancelResponse {
21992223
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
22002224
* effort can result in faster responses and fewer tokens used on reasoning in a
22012225
* response.
2226+
*
2227+
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
2228+
* effort.
22022229
*/
22032230
reasoning_effort?: Shared.ReasoningEffort | null;
22042231

@@ -2488,6 +2515,9 @@ export namespace RunCreateParams {
24882515
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
24892516
* effort can result in faster responses and fewer tokens used on reasoning in a
24902517
* response.
2518+
*
2519+
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
2520+
* effort.
24912521
*/
24922522
reasoning_effort?: Shared.ReasoningEffort | null;
24932523

@@ -2632,6 +2662,9 @@ export namespace RunCreateParams {
26322662
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
26332663
* effort can result in faster responses and fewer tokens used on reasoning in a
26342664
* response.
2665+
*
2666+
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
2667+
* effort.
26352668
*/
26362669
reasoning_effort?: Shared.ReasoningEffort | null;
26372670

src/resources/files.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class Files extends APIResource {
5757
}
5858

5959
/**
60-
* Delete a file.
60+
* Delete a file and remove it from all vector stores.
6161
*/
6262
delete(fileID: string, options?: RequestOptions): APIPromise<FileDeleted> {
6363
return this._client.delete(path`/files/${fileID}`, options);

src/resources/graders/grader-models.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,9 @@ export namespace ScoreModelGrader {
282282
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
283283
* effort can result in faster responses and fewer tokens used on reasoning in a
284284
* response.
285+
*
286+
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
287+
* effort.
285288
*/
286289
reasoning_effort?: Shared.ReasoningEffort | null;
287290

src/resources/shared.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,22 +92,25 @@ export interface ComparisonFilter {
9292
key: string;
9393

9494
/**
95-
* Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`.
95+
* Specifies the comparison operator: `eq`, `ne`, `gt`, `gte`, `lt`, `lte`, `in`,
96+
* `nin`.
9697
*
9798
* - `eq`: equals
9899
* - `ne`: not equal
99100
* - `gt`: greater than
100101
* - `gte`: greater than or equal
101102
* - `lt`: less than
102103
* - `lte`: less than or equal
104+
* - `in`: in
105+
* - `nin`: not in
103106
*/
104107
type: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte';
105108

106109
/**
107110
* The value to compare against the attribute key; supports string, number, or
108111
* boolean types.
109112
*/
110-
value: string | number | boolean;
113+
value: string | number | boolean | Array<string | number>;
111114
}
112115

113116
/**
@@ -241,6 +244,9 @@ export interface Reasoning {
241244
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
242245
* effort can result in faster responses and fewer tokens used on reasoning in a
243246
* response.
247+
*
248+
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
249+
* effort.
244250
*/
245251
effort?: ReasoningEffort | null;
246252

@@ -267,6 +273,9 @@ export interface Reasoning {
267273
* supported values are `minimal`, `low`, `medium`, and `high`. Reducing reasoning
268274
* effort can result in faster responses and fewer tokens used on reasoning in a
269275
* response.
276+
*
277+
* Note: The `gpt-5-pro` model defaults to (and only supports) `high` reasoning
278+
* effort.
270279
*/
271280
export type ReasoningEffort = 'minimal' | 'low' | 'medium' | 'high' | null;
272281

src/resources/vector-stores/files.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ export namespace VectorStoreFile {
264264
*/
265265
export interface LastError {
266266
/**
267-
* One of `server_error` or `rate_limit_exceeded`.
267+
* One of `server_error`, `unsupported_file`, or `invalid_file`.
268268
*/
269269
code: 'server_error' | 'unsupported_file' | 'invalid_file';
270270

0 commit comments

Comments
 (0)